Class: POESLDevice

POESLDevice

Provides methods and properties for accessing hardware on an external POE (Power over Ethernet) Stacklight product from ArcX.


Members


<readonly> connected :bool

Returns true when successfully connected.

Type:
  • bool
Since:
  • 0.1 (WAT 2.0)

<readonly> digInputs :Array.<exio.POESLInput>

An array of the 2 individual digital inputs.

Type:
Since:
  • 0.1 (WAT 2.0)

<readonly> digOutputs :Array.<exio.POESLOutput>

An array of the 7 individual digital outputs.

Type:
Since:
  • 0.1 (WAT 2.0)

host :string

The hostname (e.g. IP address) of the POE Stacklight device that this object will connect to. This needs to be set before attempting to open.

Type:
  • string
Since:
  • 0.1 (WAT 2.0)

<readonly> inputs :exio.POESLInputs

Returns the inputs object.

Type:
Since:
  • 0.1 (WAT 2.0)
See:

<readonly> outputs :exio.POESLOutputs

Returns the outputs object.

Type:
Since:
  • 0.1 (WAT 2.0)
See:

<readonly> stacklight :exio.POESL

Returns the stacklight object.

Type:
Since:
  • 0.1 (WAT 2.0)
See:

Methods


close()

Close the connection to the POESL Stacklight Device.

Since:
  • 0.1 (WAT 2.0)

open()

Attempts to open a connection to the POESL Stacklight device.

Since:
  • 0.1 (WAT 2.0)
Returns:

Indicates if the open was successfully started.

Type
bool

reset()

Resets properties to the default value. Useful for resetting to a known state when re-configuring.

Since:
  • 0.1 (WAT 2.0)

Events


closed

Emitted when the connection to the device has been closed.

Since:
  • 0.1 (WAT 2.0)

error

Emitted when the connection to the device detects an error condition.

Parameters:
Name Type Description
err string

Description of the error

Since:
  • 0.1 (WAT 2.0)

opened

Emitted when a connection to the device has been established.

Since:
  • 0.1 (WAT 2.0)