Methods
-
(inner) connect(callback, errorcallback)
-
Opens the connection to an endpoint.
Parameters:
Name Type Description callback
function A function which will be executed directly after the connection is open. errorcallback
function A function which will be executed if the connection fails. -
(inner) disconnect()
-
Closes the connection to an endpoint.
-
(inner) getDevices() → {Array}
-
Returns the devices of an endpoint.
Returns:
- Type
- Array
-
(inner) setProperty(name, propName, value)
-
Sets a property value of a device.
Parameters:
Name Type Description name
string The device name. propName
string The property name. value
The new value.