   // We need to wait the initialization in order to enable GPRS
   // So...
   delay(10000);
-  if (!fona.enableGPRS(true))
+  for (int i = 0; i < 3 && !fona.enableGPRS(true); i++)
   {
     Serial.println("FONA GPRS not enabled!");
+    delay(10000);
   }
   
   if (!fona.enableNetworkTimeSync(true)) {

  Serial.print("POST message: ");
  Serial.println(buffer2);
    
  fona.HTTP_POST_start(url, F("Content-Type: application/json"), (uint8_t *)buffer2, strlen(buffer2), &statuscode, &response_length);

  Serial.print("Status: ");
  Serial.println(statuscode);


    // Send message
    if (!fona.sendSMS(destination, buffer)) {
      Serial.println(F("SMS failed"));
    } else {
      Serial.println(F("SMS sent!"));
    }

    if (!send_http_post(http_post_url, id, buffer)) {
      Serial.println(F("HTTP POST Failed"));
    } else {
      Serial.println(F("HTTP POST Sent!"));
    }
  }
  
