Tool/software:
Hello Community,
We are using FTP protocol to transfer and receive file from server. When the sensor starts it connects with WiFi network and then with FTP server and communication works fine.
After a while sensor gets disconnected from FTP server and then could not connect with server again giving error at this function
connect(data_socket, (struct sockaddr *)&data_addr, sizeof(data_addr) with return value -1
and then later failing here
data_socket = socket(ctrl->sa_family, SOCK_STREAM, 0) where the return value is -1
While testing in our lab, we never had this problem, but now the sensor is at our customer testing site, where its failing when it gets disconnected with FTP server.
What would be the problem here, does wifi router blocking connection here here with FTP server?
How to debug this, since its not reproducible in our lab?
Thnaks and Regards,
Swapnil