1.0.10 • Published 6 years ago
axia-sapv2 v1.0.10
Installation
npm install --save axia-sapv2
Basic Usage
const SapV2 = require("axia-sapv2");
let Client = new SapV2({
label: "SapV2",
host: "127.0.0.1",
port: "9600",
user: "Admin",
pass: "Admin"
});
label can be anything. This is of no use as of v.1.0.0 but will be used for logging in future versions. Default is LWRP.
host is the IP address of the LiveWire device you want to connect to. Default is localhost.
port is the LiveWire telnet port of the device. Default is port 93.
user is the login username of the device. Default is Admin.
pass is the login password of the device. Default is Admin.
Methods
write(command)
Send a command to device.
Events
connected
On successful connection to device.
data
On data receive, returning parsed data.
data.raw
On data receive, returning raw data.
error
On error, returning a String or Object.
error.raw
On error, returning raw error.