1.0.1 • Published 5 years ago

cctalk-message v1.0.1

Weekly downloads
4
License
Apache-2.0
Repository
github
Last release
5 years ago

Importent

cctalk-message and other older versions get now developed and maintained under https://github.com/direktspeed/node-cctalk-command

in future please install npm i node-cctalk-command

node-cctalk-command

crc can be 8 or 16

Example

cmd = require('cctalk-message')
setAcceptanceMask = cmd(src, dest, command, [data], crc).toBuffer -> <Buffer .. .. .. >

Usage

const ccMessage = 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)