com.zsmartsystems.zigbee.ZigBeeNode.getLastUpdateTime()方法的使用及代码示例

x33g5p2x  于2022-02-05 转载在 其他  
字(1.5k)|赞(0)|评价(0)|浏览(92)

本文整理了Java中com.zsmartsystems.zigbee.ZigBeeNode.getLastUpdateTime()方法的一些代码示例,展示了ZigBeeNode.getLastUpdateTime()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ZigBeeNode.getLastUpdateTime()方法的具体详情如下:
包路径:com.zsmartsystems.zigbee.ZigBeeNode
类名称:ZigBeeNode
方法名:getLastUpdateTime

ZigBeeNode.getLastUpdateTime介绍

[英]Return the last update time. This is the last time that important node information was updated such as route tables, neighbor information etc
[中]返回上次更新时间。这是最后一次更新重要节点信息,如路由表、邻居信息等

代码示例

代码示例来源: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()));
properties.put(ZigBeeBindingConstants.THING_PROPERTY_NETWORKADDRESS, node.getNetworkAddress().toString());
properties.put(ZigBeeBindingConstants.THING_PROPERTY_STACKCOMPLIANCE,

代码示例来源:origin: openhab/org.openhab.binding.zigbee

ZigBeeBindingConstants.getISO8601StringForDate(node.getLastUpdateTime()));
properties.put(ZigBeeBindingConstants.THING_PROPERTY_NETWORKADDRESS, node.getNetworkAddress().toString());

代码示例来源:origin: zsmartsystems/com.zsmartsystems.zigbee

@Test
public void testLastUpdate() {
  ZigBeeNode node = new ZigBeeNode(Mockito.mock(ZigBeeNetworkManager.class), new IeeeAddress());
  assertNull(node.getLastUpdateTime());
  node.setLastUpdateTime();
  assertNotNull(node.getLastUpdateTime());
}

相关文章