I am communicating with the server's database via Arduino GSM shield + GPRS connectivity
if (client.connect(server, port))
{
....
}
The first time when the loop() runs, the code works perfectly and stores in my server's db. The second time when the loop() runs, It is unable to connect to the server . I don't know what is the problem.
Thanks in advance ...
I get something similar, that has been frustrating me for days now.
I establish a GPRS link and then run a publish / subscribe session over that link. The session establishes and exchanges the first few messages - then anywhere between 2mins and 4mins - it drops the session and the GSM shield has to be restarted (not just software initialise, but restart the arduino) see Connecting to GSM/GPRS unstable, eventually hangs - #9 by shanevanj - Arduino GSM Shield - Arduino Forum
I have the same code running using the Arduino ETH shield and it is rock solid and responsive with great stability and uptime.
Any ideas anyone???
You should post your entire code. Snippets won't do it.