-
Notifications
You must be signed in to change notification settings - Fork 1
Description
Hi,
Thank you for the decoder.
I have this error when decoding the package from device Teltonika FMC130. Can you help advise?
Much appreciated!
`node:buffer:1178
throw new ERR_INVALID_BUFFER_SIZE('64-bits');
^
RangeError [ERR_INVALID_BUFFER_SIZE]: Buffer size must be a multiple of 64-bits
at new NodeError (node:internal/errors:393:5)
at Buffer.swap64 (node:buffer:1178:11)
at decodeIOElement (/Users/duongtran/Works/Sencar/Dev/TCP/node_modules/teltonika-decoder/src/codecs/decode.js:72:46)
at decodeIOElements (/Users/duongtran/Works/Sencar/Dev/TCP/node_modules/teltonika-decoder/src/codecs/decodeCodec8.js:42:36)
at decodeRecord (/Users/duongtran/Works/Sencar/Dev/TCP/node_modules/teltonika-decoder/src/codecs/decodeCodec8.js:30:17)
at decodeCodec8 (/Users/duongtran/Works/Sencar/Dev/TCP/node_modules/teltonika-decoder/src/codecs/decodeCodec8.js:10:18)
at decodePackage (/Users/duongtran/Works/Sencar/Dev/TCP/node_modules/teltonika-decoder/src/decodePackage.js:24:11)
at decode (/Users/duongtran/Works/Sencar/Dev/TCP/node_modules/teltonika-decoder/src/decode.js:17:8)
at Socket. (/Users/duongtran/Works/Sencar/Dev/TCP/tcp_listener.js:21:20)
at Socket.emit (node:events:513:28) {
code: 'ERR_INVALID_BUFFER_SIZE'
}
Node.js v19.1.0`