       else {
       
         if ( b == ',' ) {
+          strcpy(latitude,buffer);
           Serial.print("LATITUDE       : ");
-          Serial.println(buffer);
-          latitude=buffer;
+          Serial.println(latitude);
+                    
           state = PS_READ_NORTH_SOUTH;
           resetBuffer();
         }

   timer.run();

//Only for debug purpose, send directly the AT command manually via serial interface
   if(GPRS.available())
      Serial.write(GPRS.read());
   if(Serial.available())
      GPRS.write(Serial.read());

}



  seconds++;
} 

/******************************************************************************************
 * SendGPSLocation()
 * This procedure open a GPRS data connection and send latitude and longitude for server.
 * After data is sent it disconnect from server.
 ******************************************************************************************/

void SendGPSLocation(){  
  //char data2db[]="410.869,111.222";
  char data2db[20];
  //start a connection to TCP to URL and port 
  //get the local ip number
  //GPRS.println("AT+CIFSR");
