iviva-bimrt-interface-node

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

});

Dependencies (6)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i iviva-bimrt-interface-node

    Weekly Downloads

    0

    Version

    1.1.4

    License

    ISC

    Unpacked Size

    3.33 MB

    Total Files

    46

    Last publish

    Collaborators

    • eutech