   static int const prot = 1;          // default value TCP
 #endif
 
+/*******************************
+ * Definition of error codes
+ *******************************/
+#define NO_GPRS_SIGNAL 20
+#define DNS_ERROR 21
+#define PDP_DEACT 22
+
 
 //The content of messages sent
 //#define MESSAGE  "hello,world"
-#define PHONE_NUMBER "18968192062"
 #define MESSAGE_LENGTH 30
 //#define MESSAGE_LENGTH 160
 char message[MESSAGE_LENGTH];
 int messageIndex = 0;
+
 char phone[16];
 char datetime[24];
-
 char gprsBuffer[64];
 char *s = NULL;
 char smsMessage[64];
 
 
 #include <DFRobot_sim808.h>
-
 #include <sim808.h>
 #include <SoftwareSerial.h>
 #include <string.h>

   if(token != NULL) {    
      strncpy(longitude,token,sizeof(longitude));
      longitude[sizeof(longitude)-1] = '\0';   
      Serial.print("LONGITUDE       : ");
      Serial.println(longitude);
      
   }else return false;  


  sim808_read_buffer(infoLocation,sizeof(infoLocation),DEFAULT_TIMEOUT,DEFAULT_INTERCHAR_TIMEOUT); 
  GPSAnalyzer32(infoLocation);

  //Send collected data to mysql server 
  SendGPSLocation();
  //createSMSMessage(smsMessage,latitude, longitude, MSL_altitude, Speed);
}


