Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Parameters

TypeDescription
DeviceEventListenerAn instance of a class that implements the DeviceEventListener interface (or a lambda that does the same).

Returns

None.

Example

Code Block
languagejava
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

TypeDescription
Predicate<Device>

Returns

Collection<Device> containing ...

Example

Code Block
languagejava
GatewayClient gw = new GatewayClient(new ConnectionInfo(ConnectionType.ZIGBEE_UART, "/dev/ttyUSB0"));
...

listDevices()

Usage

...

Parameters

None.

Returns

Collection<Device> containing ...

Example

Code Block
languagejava
GatewayClient gw = new GatewayClient(new ConnectionInfo(ConnectionType.ZIGBEE_UART, "/dev/ttyUSB0"));
...

getDevice(String)

Usage

...

Parameters

TypeDescription
String

Returns

Device ...

Example

Code Block
languagejava
GatewayClient gw = new GatewayClient(new ConnectionInfo(ConnectionType.ZIGBEE_UART, "/dev/ttyUSB0"));
...

Upgrade API

upgradeFirmware(ConnectionInfo, File, ResultConsumer<SerialUploadResult>)

...