1.1.3 • Published 6 years ago
ivivacloud-bimrtinterface v1.1.3
iviva-bimrt-interface-node
A node.js helper library for iViva BIMRT Interface
Getting Started
You need to have access to an iVivaCloud installation and have a valid api key.
Requirements
- Node.js version 4 and above.
Installation
npm install iviva-bimrt-interface-node
Usage
const BIMRTInterface = require('iviva-bimrt-interface-node');
const interface = new BIMRTInterface();
var logger = new BIMRTInterface.BIMRTInterfaceLogger();
/* A sample method when subscribe event received */
interface.on('subscribe', (address:string, addressDetails:string, callback:function) => {
});
/* A sample method when setdata received */
interface.on('setdata', (address:string, newValue:string, callback:function) => {
});
/* A sample method when demandpoll(getdata) event received */
interface.on('demandpoll', (demandPoints:[]) => {
});
/* A sample method to the interface update interface's point */
this.setValue = (address:string, newValue:string) => {
});