Class: EXIO

EXIO

Provides methods and properties for connecting to external hardware.


Methods


<static> destroy(obj)

Destroys a device created using one of the create* methods. An application must destroy every device it creates when it is no longer using it to avoid memory leaks. Device instances are automatically cleaned up when a page is unloaded, however with single-page applications, a page may not be unloaded for extended periods, thus the application must use this function to clean up unused devices.

Parameters:
Name Type Description
obj Object

A device created using one of the create* methods


createAWS(host, name)

Parameters:
Name Type Description
host string

The hostname of the ARCX WebSocket device (e.g. its IP address)

name string

The optional name to assign to the device. It can later be accessed from EXIO using this name.

Since:
  • 0.1 (WAT 2.0)
Returns:
Type
exio.AWSDevice

createECG(host, name)

Parameters:
Name Type Description
host string

The hostname of the ECG device (e.g. its IP address)

name string

The optional name to assign to the ECG object. It can later be accessed from EXIO using this name.

Since:
  • 0.1 (WAT 2.0)
Returns:
Type
exio.ECGDevice

createPOESL(host, name)

Parameters:
Name Type Description
host string

The hostname of the POE Stacklight device (e.g. its IP address)

name string

The optional name to assign to the POE Stacklight object. It can later be accessed from EXIO using this name.

Since:
  • 0.1 (WAT 2.0)
Returns:
Type
exio.POESLDevice