       phone[sizeof(phone)-1] = '\0';
 
       //strcpy(gpsMode,token);
-      Serial.print("phone    : ");
+      Serial.print("phone: ");
       Serial.println(phone);   
    }else return false;
    

} 

/******************************************************************************************
 * SendGPSLocation()
 * This procedure open a GPRS data connection and send latitude and longitude for server.
 * After data is sent it disconnect from server.
 * Send data to server using format "latitude,longitude" = "llll.llll,lllll.llll"
 * obs. no \0 at end like string.
 ******************************************************************************************/

void SendGPSLocation(){  
  //char latitude[10]="0000.0000";
  //char longitude[11]="00000.00000";
  //char MSL_altitude[8]="00000.0";
  //char Speed[8]="000.000";
  //char data2db[21]="0000.0000,00000.0000";  //"latitude,longitude"
  char data2db[36]="0000.0000,00000.0000,00000.0,000.000"; //"latitude,longitude,MSL_altitude,Speed"
    
  //get the local ip number
  //GPRS.println("AT+CIFSR");

  // SerialSim808_Read();
  delay(50);
  
  /*************************************************
   * Special config for SMS and voice call
   *************************************************/
  //PARAM FOR SMS AND RECEIVE CALL
  if(!sim808_check_with_cmd("AT+CMGF=1\r\n","OK\r\n",CMD)){ //Set SMS for text mode not HEX when read it
    delay(1);//Serial.println("fail CMGF");     
  }else {
    delay(1);//Serial.println("ok CMGF");
  }
  delay(25);
  
  if(!sim808_check_with_cmd("AT+CMGDA=\"DEL ALL\"\r\n","OK\r\n",CMD)){ //delete all SMS
    delay(1);//Serial.println("fail del SMS");     
  }else {
    delay(1);//Serial.println("ok del SMS");
  }
  delay(25);

  sim808_check_with_cmd("AT+CLIP=1\r\n","OK\r\n",CMD);
  delay(25);
  
  timer.setInterval(60000, GetGPSLocation);
  timer.setInterval(1000, PrintSecondsElapsed);
}


