ivivacloud-bimrtinterface

1.1.3 • Public • Published

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) => {

});

Readme

Keywords

none

Package Sidebar

Install

npm i ivivacloud-bimrtinterface

Weekly Downloads

1

Version

1.1.3

License

ISC

Unpacked Size

3.34 MB

Total Files

68

Last publish

Collaborators

  • eutech