Retry FTP with another server

Hi, I’m using multiple FTP in M66. I am using this such that if opening of primary FTP server fails in somecase, then i close the primary FTP(results in error) and then try to open a secondary FTP.

But after repeated trials, I’m getting ERROR as response for AT+QFTPUSER. What is the exception i have to handle while doing so?

Hello,

The max timeout of FTP close is 60s. You could share the exact error code of FTP close. If previous FTP socket is not closed correctly. There could be error when you open a new FTP server.

Best Regards,

1 Like

Thanks for the reply. I have added exceptions to handle the errors.