I am communicating with the Web server's database via Arduino GSM shield + GPRS connectivity

void loop() { if (client.connect(server, port)) { ....... } else { Serial.println("Server not found"); } delay(1000); }

The first time when the loop() runs in the serial port, the code works perfectly and stores in my server's db. The second time when the loop() runs after some delay, It is unable to connect to the server and results "server not found" . I don't know what is the problem.

Please let me know if there is a way to connect continuously. Thank you

  • Forgot to mention to you @Manihatty that this post was migrated from SO and I merged this with your other one. The answer that was on SO is now on the question here on Arduino Stack Exchange. – Anonymous Penguin May 6 '14 at 2:01

Browse other questions tagged or ask your own question.