kepserverex-js
A library to interact with KEPServerEX
Table of Contents
Install
npm:
npm install kepserverex-js
yarn:
yarn add kepserverex-js
Usage
The package is currently comprised of two modules.
- IotGateway: A class to read and write from the IoTGateway, REST agents that KEPServerEx provides.
- TagBuilder: A helper class to functionally create tag array to read and write using the IoTGateway class.
const TagBuilder IotGateway = ; const tagBuilder = namespace: 'Channel1.Device1' ;const iotGateway = host: '192.168.0.1' username: 'administrator' password: 'superSecretPassowrd'; // Add read tags to tag builder// ["Channel1.Device1.TankLevel","Channel1.Device1.TankLevel"]const myTags = tagBuilder ; //read tags from the iotgateway agentiotGateway; //clean tags from tagsbuildertagBuilder; // Add write tags to builder.// [ {id:"Channel1.Device1.ValveOpen","v":1}, {"id":"Channel1.Device1.PumpSpeed","v":80}]const myTags = tagBuilder ; iotGateway;
Contributors
Name |
---|
Ryan Albrecht |
License
MIT © Ryan Albrecht