Example of use:
{
// Sends PIC_0003.jpg from C:/Picture to an FTP server
_3G.sendFileto3GFTP(1, "PIC_0003.jpg", "ftp.server.com", "FTP_port", 1,
"FTP_username", "FTP_password");
}
The function returns:
•
'1' on success
•
'-2' if error setting the connection parameters (APN)
•
'-3' if error setting the FTP server ('-13' if CME error available)
•
'-4' if error setting the FTP port ('-14' if CME error available)
•
'-5' if error setting the FTP mode ('-15' if CME error available)
•
'-6' if error setting the FTP type ('-16' if CME error available)
•
'-7' if error setting the user name ('-17' if CME error available)
•
'-8' if error setting the FTP password ('-18' if CME error available)
•
'-20' if error uploading the file
•
'-22' if error with CME code (FTP error)
•
'-23' if error getting the file of the size to upload
-37-
Sending the photos and videos
v4.3
Need help?
Do you have a question about the Waspmote and is the answer not in the manual?