Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
sdk:scripts:gps-udp-client [2017/10/11 18:30]
fachet
sdk:scripts:gps-udp-client [2019/07/08 14:47] (current)
fachet
Line 86: Line 86:
         }         }
     } else {     } else {
 +      ​
 +       /* Convert message $GN to $GP */
 +       /* if (strstr(data,"​$GNGGA"​)==0) {
 +        *  a_arr = explode(data);​
 +        *  a_arr[2]="​P";​
 +        *  data = implode(a_arr);​
 +        * }
 + */
 +       /* skip all messages different from GPGGA */
 +       /* if (strstr(data,"​$GPGGA"​)==())
 +        *  continue;
 +        */          ​
         sent = sendto(server,​ data, SERVER, PORT);         sent = sendto(server,​ data, SERVER, PORT);
         if (sent != len) {         if (sent != len) {