etherfostag
v0.1.1
Published
EtherFOS WEB Tag Read/Write
Readme
Node EtherFOS Tag
etherfostag is a EtherFOS WEB SCADA tag read/write library for Node.js.
Installation
To install node-redis, simply:
npm install etherfostagUsage
Basic Example
const EtherfosTag = require('etherfostag');
(async ( ) => {
const hmi = new EtherfosTag();
await hmi.setTag('device.1002', 'value', '52.6');
await hmi.setTag('device.1002', 'rawvalue', '80');
const temp = await hmi.getTag('device.1002', 'value');
console.log('Value:', temp);
const temp = await hmi.getTag('device.1002', 'rawvalue');
console.log('Rawvalue:', temp);
await hmi.disconnect();
})();Commands
// Set tag commands
await hmi.setTag(Tag, Type, value);
// Get tag commands
value = await hmi.getTag(Tag, Type);