This shows you the differences between two versions of the page.
Next revision | Previous revision Last revision Both sides next revision | ||
sdk:scripts:gps-udp-client [2015/05/05 15:04] 127.0.0.1 external edit |
sdk:scripts:gps-udp-client [2019/07/08 12:47] fachet |
||
---|---|---|---|
Line 1: | Line 1: | ||
+ | |||
====== SDK Script gps-udp-client.are ====== | ====== SDK Script gps-udp-client.are ====== | ||
<code c gps-udp-client.are> | <code c gps-udp-client.are> | ||
Line 85: | 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) { | ||
Line 98: | Line 111: | ||
</code> | </code> | ||
+ | |||