Skip to content

Instantly share code, notes, and snippets.

@dimschlukas
dimschlukas / lt-20_payload_decoder.js
Last active February 8, 2024 18:26
This is a javascript decoder for the GlobalSat LT-20 LORAWAN GPS tracker. The decoder is built to work with TheThingsNetwork/Stack V3
/*
This is a javascript decoder for the GlobalSat LT-20 LORAWAN GPS tracker.
The decoder is built to work with TheThingsNetwork/Stack V3
Special thanks to Gul-Dukat, AH and akenza.io for initial work.
The script was found on the Forum of TheThingsNetwork. But it had some flaws, where
".toString(16)" would remove the leading zero of a hex-string, so sometimes it would happen to
get the wrong latitude/longitude.
*/