Trying to taken this command and revise into my sketch
AT+CFTPSLOGIN=”112.74.93.163”,21,”tmf”,”tmf123”,0
Tried
modem.sendAT("+CFTPSLOGIN=",(ftp_server, ftp_port, ftp_user, ftp_pass,0));
ftp_server = FTP-domain
ftp_port = 21
ftp_user = username
ftp_pass = password
Compliles but doesn't login
+CFTPSSTART: 0
OK
ERROR
My function being called
void FTP4G_upload() {
String res;
pDBG("Uploading via FTP: ");
modem.sendAT("+CFTPSSTART"); //used to start FTP(S)
modem.waitResponse(1000L, res);
pDBG("FTP Started...");
modem.sendAT("+CFTPSLOGIN=",(ftp_server, ftp_port, ftp_user, ftp_pass,0));
//AT+CFTPSLOGIN=”112.74.93.163”,21,”tmf”,”tmf123”,0
modem.waitResponse(1000L, res);
pDBG("FTP Logging in...");
//modem.sendAT("+CFTPSCWD=", ("/dir1"));
// modem.waitResponse(1000L, res);
//modem.sendAT("+CFTPTYPE", ("I"));
// pDBG("Changed type to binary ");
// modem.waitResponse(1000L, res);
//modem.sendAT("+CFTPSPUTFILE", ("/Camera/test.txt"));
// modem.waitResponse(1000L, res);
Serial.println("Done... Waiting next transfer...");
delay(100);
}
