-
(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. |
- Source:
-
(inner) disconnect()
-
Closes the connection to an endpoint.
- Source:
-
(inner) getDevices() → {Array}
-
Returns the devices of an endpoint.
- Source:
Returns:
-
Type
-
Array
-
(inner) poll()
-
Refreshes the device list of an endpoint.
- Source:
-
(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. |
- Source:
-
(inner) watch()
-
After running this function, the device list of an endpoint will be
refreshed automatically, as soon as a device changes.
- Source: