I have the following data:
$GPVTG,,T,,M,0.00,N,0.0,K,A*13
I need to read the data, however there are blanks in between the commas, therefore I am not sure how I should read the data.
Also, how do I select GPVTG only for a group of data? For example:
GPVTG,,T,,M
GPGGA,184945.00
GPRMC,18494
GPVTG,,T,,M,0
GPGGA,184946.000,3409
I have tried using:
 /* read data line */
 fgets(gpsString,100,gpsHandle);
 char type[10] = "GPVTG";
 sscanf(gpsString," %GPVTG", &type);
 if (strcmp(gpsString, "GPTVG") == 0){
   printf("%s\n",gpsString);
 }
 
     
     
     
     
     
    