node-cctalk-command
v1.0.2
Published
A Class that creates CCTalk v4 Commands from Buffers or Arguments gets used by node-cctalk to send commands to a node-cctalk-device Supports crc 8 and 16
Downloads
11
Maintainers
Readme
node-cctalk-command
This accepts crc as int 8 or 16 this supports data as array rest is int.
Example
cmd = require('node-cctalk-command')
setAcceptanceMask = new cmd(src, dest, command, [data], crc).toBuffer -> <Buffer .. .. .. >
Usage
const CcTMessage = require('./index')
//var myCmd = new Uint8Array([2,0,1,245,8])
//var myCmd = new Uint8Array([1,0,2,255])
var myCmd = new Uint8Array([1, 0, 2, 254, 255])
new ccMessage(myCmd)