teltonika-decoder
v0.1.1
Published
A decoder for encoded Teltonika network packages
Downloads
18
Readme
teltonika-decoder
Decodes messages from Teltonika devices that use either Codec8 or Codec8Extended.
Installation
yarn add teltonika-decoder
Usage
const { decode } = require("teltonika-decoder")
const result = decode(Buffer.from("...", "hex"))
if (result.isImei) {
// The imei number of the device was sent
console.log(result.imei)
} else {
// Telemetry data was sent
console.log(result.data)
}