Hi,
Following this example I wanted to upload a file to my Parrot Disco Wing.
Here is the very simple code I use :
As you can see it is more or less exactly the same code as in @Erel's example above.
The problem is that I get an error "cannot assign void value" on the dim sf as object line
Any idea where could be my error ?
Thanks
Following this example I wanted to upload a file to my Parrot Disco Wing.
Here is the very simple code I use :
B4X:
Private Sub btFTP_Click
If Not(ftpChuck.IsInitialized) Then ftpChuck.Initialize("ftp", "192.168.42.1", 61, "", "") 'ftp port61 on the chuck to upload flightPlan
ftpChuck.PassiveMode = True
Dim myPath, myFile As String
myPath = manager.GetString("missionFilesPath")
If myPath = "" Then myPath = File.DirRootExternal
myFile = "flightplan.mavlink"
Dim sf As Object = ftpChuck.UploadFile(myPath, myFile, True, "/")
Wait For (sf) ftp_UploadCompleted (ServerPath As String, Success As Boolean)
If Success Then
Log("file was uploaded successfully")
Else
Log("Error uploading file")
End If
End Sub
As you can see it is more or less exactly the same code as in @Erel's example above.
The problem is that I get an error "cannot assign void value" on the dim sf as object line
Any idea where could be my error ?
Thanks