node-cctalk-command

1.0.2 • Public • Published

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)

Package Sidebar

Install

npm i node-cctalk-command

Weekly Downloads

7

Version

1.0.2

License

Apache-2.0

Unpacked Size

18.3 kB

Total Files

6

Last publish

Collaborators

  • frank-dspeed