Go Down

Topic: GSM DISCONECT (Read 2318 times) previous topic - next topic

ualonso

Hi, I am doing a project that send data to a server continuosly, but randomly and suddenly the program crash and I can see that the problem is the connection which is lost, I do not want to reboot the program so I need to know how can I make that it reconnects again. I did a client.stop() but it did not work. What do you recommend?

davidgoth

client.stop() should work. this function sends a +++ and AT+QICLOSE command, you should see it with the debug mode activated. After of this execution, you could establish a new connection to your server.

ualonso

Thanks, the problem is a error 302, I supose that comes from the server because once the error begins never return to a code 200.

Go Up
 


Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

Arduino
via Egeo 16
Torino, 10131
Italy