node-enocean-crc8

crc8 calculation as defined by the Enocean Serial Protocol Specefiation (ESP3)

Usage no npm install needed!

<script type="module">
  import nodeEnoceanCrc8 from 'https://cdn.skypack.dev/node-enocean-crc8';
</script>

README

Travis (.org) Code Climate coverage Code Climate maintainability Code Climate technical debt

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