...
Parameters
Type | Description |
---|---|
DeviceEventListener | An instance of a class that implements the DeviceEventListener interface (or a lambda that does the same). |
Returns
None.
Example
Code Block | ||
---|---|---|
| ||
GatewayClient gw = new GatewayClient(new ConnectionInfo(ConnectionType.ZIGBEE_UART, "/dev/ttyUSB0")); ... DeviceEventListener l = new SampleDeviceEventListener(); gw.addDeviceEventListener(l); ... gw.removeDeviceEventListener(l); ... |
removeAllDeviceEventListeners()
...
listDevices(Predicate<Device>)
Usage
...
Parameters
Type | Description |
---|---|
Predicate<Device> |
Returns
Collection<Device> containing ...
Example
Code Block | ||
---|---|---|
| ||
GatewayClient gw = new GatewayClient(new ConnectionInfo(ConnectionType.ZIGBEE_UART, "/dev/ttyUSB0"));
... |
listDevices()
Usage
...
Parameters
None.
Returns
Collection<Device> containing ...
Example
Code Block | ||
---|---|---|
| ||
GatewayClient gw = new GatewayClient(new ConnectionInfo(ConnectionType.ZIGBEE_UART, "/dev/ttyUSB0"));
... |
getDevice(String)
Usage
...
Parameters
Type | Description |
---|---|
String |
Returns
Device ...
Example
Code Block | ||
---|---|---|
| ||
GatewayClient gw = new GatewayClient(new ConnectionInfo(ConnectionType.ZIGBEE_UART, "/dev/ttyUSB0")); ... |
Upgrade API
upgradeFirmware(ConnectionInfo, File, ResultConsumer<SerialUploadResult>)
...