This shows you the differences between two versions of the page.
Next revision | Previous revisionLast revisionBoth sides next revision | ||
sdk:scripts:gps-udp-client [2015/05/05 15:04] – external edit 127.0.0.1 | 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," | ||
+ | * a_arr = explode(data); | ||
+ | * a_arr[2]=" | ||
+ | * data = implode(a_arr); | ||
+ | * } | ||
+ | */ | ||
+ | /* skip all messages different from GPGGA */ | ||
+ | /* if (strstr(data," | ||
+ | * continue; | ||
+ | */ | ||
sent = sendto(server, | sent = sendto(server, | ||
if (sent != len) { | if (sent != len) { | ||
Line 98: | Line 111: | ||
</ | </ | ||
+ | |||