This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | Last revision Both sides next revision | ||
sdk:scripts:gps-udp-client [2017/10/11 16:30] fachet |
sdk:scripts:gps-udp-client [2019/07/08 12:47] 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) { |