gpt4 book ai didi

com.zsmartsystems.zigbee.app.discovery.ZigBeeDiscoveryExtension.refresh()方法的使用及代码示例

转载 作者:知者 更新时间:2024-03-15 15:03:31 28 4
gpt4 key购买 nike

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

ZigBeeDiscoveryExtension.refresh介绍

[英]Performs an immediate refresh of the network. Subsequent updates are performed at the current update rate, and the timer is restarted from the time of calling this method.
[中]立即刷新网络。后续更新以当前更新速率执行,计时器从调用此方法时开始重新启动。

代码示例

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

@Override
public void commandReceived(ZigBeeCommand command) {
  // Listen for specific commands that may indicate that the mesh has changed
  if (command instanceof ManagementLeaveResponse || command instanceof DeviceAnnounce) {
    logger.debug("DISCOVERY Extension: Mesh related command received. Triggering mesh update.");
    refresh();
  }
}

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

Mockito.verify(extension, Mockito.times(1)).refresh();
Mockito.verify(extension, Mockito.times(2)).refresh();

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com