You are reading a single comment by @halemmerich and its replies.
Click here to read the full conversation.
-
Looks like @BillM implemented the checksum function another way. His version computes 28 without "$" sign. Attached screenshot
Looks like @BillM implemented the checksum function another way. His version computes 28 without "$" sign. Attached screenshot
I have tried it with
PCAS02
, the command to change the update rate and without the$
included in the checksum it changes nothing while including it works.print(require("pcas").checksum("$GPGLL,5300.97914,N,00259.98174,E,125926,A"));
creates a checksum of28
which matches your example. Doing the same without$
calculates6F
as checksum.require("pcas").checksum
is as follows: