esp3-parser
v0.0.6
Published
An EnOcean Serial Protocol 3 parser
Downloads
27
Maintainers
Readme
esp3-parser
Checks if the received buffer is a vaild EnOcean Serial Protocol 3 packet.
Requirements
This parser is made for >= [email protected]
Usage
Only create a new parser:
const ESP3Parser = require('esp3-parser');
...
const parser = new ESP3Parser();
Then pipe it to serialport.
Note
This parser only validates if a packet is a vaild ESP3 packet.
Changes
0.0.6
Splitted packets will be concated. Safe-Buffer will be used.
0.0.5
Catch if the length of the buffer isn't correct.