Pages: [1]   Go Down
Author Topic: GSM DISCONECT  (Read 2205 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 3
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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?
Logged

Madrid (Spain)
Offline Offline
Full Member
***
Karma: 0
Posts: 137
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

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.
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 3
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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.
Logged

Pages: [1]   Go Up
Jump to: