you can send the NOOP command and use the commandCompleted event
B4X:
FTPpro.SendCommand("NOOP","")
and then
B4X:
Sub ftp_CommandCompleted ( Command As String, Success As Boolean, ReplyCode As Int, ReplyString As String)
Log("Command " & Command & " Success " & Success & " Replycode " & ReplyCode & " Replystring " & ReplyString)
If ReplyCode = 200 Then
'ok
Else
'something wrong...
End If
End Sub
Hi, thanks for your response.
I do something similar like that.
But it does not work because the problem is that if you can not connect, it is "waiting endlessly" and never returns an error message.
Hello, thanks for the help, it works perfectly.
I discovered that the problem is elsewhere. Connecting via wifi works well. Connecting with "mobile data" does not work downloading files.
Any ideas?
Thank you