本文整理了Java中com.zsmartsystems.zigbee.ZigBeeNode.getAssociatedDevices()
方法的一些代码示例,展示了ZigBeeNode.getAssociatedDevices()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ZigBeeNode.getAssociatedDevices()
方法的具体详情如下:
包路径:com.zsmartsystems.zigbee.ZigBeeNode
类名称:ZigBeeNode
方法名:getAssociatedDevices
[英]Get the list of associated devices as a List of Integer
[中]以整数列表的形式获取关联设备的列表
代码示例来源:origin: zsmartsystems/com.zsmartsystems.zigbee
out.println("Node Descriptor : " + node.getNodeDescriptor());
out.println("Power Descriptor : " + node.getPowerDescriptor());
out.println("Associations : " + node.getAssociatedDevices().toString());
out.println("Endpoints : ");
for (Integer endpointId : endpointIds) {
代码示例来源:origin: openhab/org.openhab.binding.zigbee
properties.put(ZigBeeBindingConstants.THING_PROPERTY_ASSOCIATEDDEVICES, node.getAssociatedDevices().toString());
properties.put(ZigBeeBindingConstants.THING_PROPERTY_LASTUPDATE,
ZigBeeBindingConstants.getISO8601StringForDate(node.getLastUpdateTime()));
代码示例来源:origin: zsmartsystems/com.zsmartsystems.zigbee
if (!associatedDevices.equals(node.getAssociatedDevices())) {
updated = true;
associatedDevices.clear();
associatedDevices.addAll(node.getAssociatedDevices());
代码示例来源:origin: openhab/org.openhab.binding.zigbee
properties.put(ZigBeeBindingConstants.THING_PROPERTY_ROUTES, jsonBuilder.toString());
properties.put(ZigBeeBindingConstants.THING_PROPERTY_ASSOCIATEDDEVICES, node.getAssociatedDevices().toString());
properties.put(ZigBeeBindingConstants.THING_PROPERTY_LASTUPDATE,
ZigBeeBindingConstants.getISO8601StringForDate(node.getLastUpdateTime()));
代码示例来源:origin: zsmartsystems/com.zsmartsystems.zigbee
assertNotNull(node.getAssociatedDevices());
assertEquals(0, node.getAssociatedDevices().size());
boolean changed = node.setAssociatedDevices(associatedDevices);
assertTrue(changed);
assertEquals(3, node.getAssociatedDevices().size());
changed = node.setAssociatedDevices(associatedDevices);
assertTrue(changed);
assertEquals(2, node.getAssociatedDevices().size());
node.getAssociatedDevices().toArray(devices);
assertEquals(Integer.valueOf(1), devices[0]);
assertEquals(Integer.valueOf(3), devices[1]);
changed = node.setAssociatedDevices(associatedDevices);
assertTrue(changed);
assertEquals(3, node.getAssociatedDevices().size());
node.getAssociatedDevices().toArray(devices);
assertEquals(Integer.valueOf(1), devices[0]);
assertEquals(Integer.valueOf(3), devices[1]);
changed = node.setAssociatedDevices(associatedDevices);
assertTrue(changed);
assertEquals(3, node.getAssociatedDevices().size());
node.getAssociatedDevices().toArray(devices);
assertEquals(Integer.valueOf(2), devices[0]);
内容来源于网络,如有侵权,请联系作者删除!