Hi there,
I am using the GPS GM862 to send my gps location. I have manage to get the numbers but I cannot serial.print the North/South /East/West.
char GPSLAT[20];
char LAT[10];
long LATI;
long LAT1;
long LONGI;
long LATI1;
long LATI2;
long LATI3;
char LATI4;
strncpy(GPSLAT,&inData[12],9);
strncpy(LAT,&GPSLAT[0],2);
LATI1=atoi(LAT);
Serial.println("LATI");
Serial.println(LATI1);
strncpy(LAT,&GPSLAT[2],2);
LATI2=atoi(LAT);
Serial.println(LATI2);
strncpy(LAT,&GPSLAT[5],4);
LATI3=atoi(LAT);
Serial.println(LATI3);
strcpy(LAT,&GPSLAT[9],1);
LATI4=atoi(LAT); // Which is the right command? (I know this command is to convert a string to an integer, I need to convert to string!)
Serial.println(LATI4); // this never prints the letter, it oesn;t print anything. What to do?
Can someone help me with the right command?