node-enocean-crc8
install
npm i -S node-enocean-crc8
usage
const getCRC8 = require('node-enocean-crc8')
var buf = Buffer.from([0x0, 0x1, 0x0, 0x5])
console.log(getCRC8(buf)) // prints 112
npm i -S node-enocean-crc8
const getCRC8 = require('node-enocean-crc8')
var buf = Buffer.from([0x0, 0x1, 0x0, 0x5])
console.log(getCRC8(buf)) // prints 112
npm i node-enocean-crc8
4
1.0.0
CC0-1.0
11.3 kB
6