1.0.10 • Published 6 years ago

axia-sapv2 v1.0.10

Weekly downloads
-
License
ISC
Repository
-
Last release
6 years ago

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.

1.0.10

6 years ago

1.0.9

6 years ago

1.0.8

6 years ago

1.0.7

6 years ago

1.0.6

6 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago