Versions Compared

Key

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

...

Returns

Return TypeDescription
Collection<Property>Result

A Result object which contains a Collection of Property objects containing the most recently known value for that Property, as well as a status indicating whether a retry is required (for example, because not all properties were discovered during the first call).

This allows users to implement their own retry-policy as needed.

Examples

Code Block
languagejava
GatewayClient gw = new GatewayClient(new ConnectionInfo(ConnectionType.ZIGBEE_UART, "/dev/ttyUSB0"));
...
final Device d = gw.getDevice(id);
final Collection<Property> properties = d.getProperties();
for (Property p : properties) {
	System.out.println("name: " + p.getName() + ", value: " + p.getValue() + ", type: " + p.getType());
}

...