1.0.2 • Published 3 years ago

crestron-cip v1.0.2

Weekly downloads
77
License
ISC
Repository
github
Last release
3 years ago

crestron-cip

Node js module for Crestron CIP interconnection

Installation

npm install --save crestron-cip

Usage

import cipclient from  'crestron-cip'

const  cip  = cipclient.connect({host:  "192.168.0.100",  ipid:  "\x03"},  ()  =>  {
  console.log('CIP connected')
  cip.dset(101, 1) // set digital value
  console.log("digital value: " + cip.dget(101))
  cip.aset(102, 25163) //set analog value
  console.log("analog value: " +  cip.aget(102))
})

cip.subscribe((data)  =>  {
  console.log("type:"  +  data.type  +  " join:"  +  data.join  +  " value:"  +  data.value)
})
1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago