本文整理了Java中com.zsmartsystems.zigbee.app.discovery.ZigBeeDiscoveryExtension.setUpdatePeriod()
方法的一些代码示例,展示了ZigBeeDiscoveryExtension.setUpdatePeriod()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ZigBeeDiscoveryExtension.setUpdatePeriod()
方法的具体详情如下:
包路径:com.zsmartsystems.zigbee.app.discovery.ZigBeeDiscoveryExtension
类名称:ZigBeeDiscoveryExtension
方法名:setUpdatePeriod
[英]Sets the update period for the mesh update service. This is the number of seconds between subsequent mesh updates. Setting the period to 0 will disable mesh updates.
[中]设置网格更新服务的更新周期。这是后续网格更新之间的秒数。将周期设置为0将禁用网格更新。
代码示例来源:origin: zsmartsystems/com.zsmartsystems.zigbee
discoveryExtension.setUpdatePeriod(60);
networkManager.addExtension(discoveryExtension);
代码示例来源:origin: zsmartsystems/com.zsmartsystems.zigbee
case "period":
if (args.length >= 3) {
extension.setUpdatePeriod(parseInteger(args[2]));
代码示例来源:origin: zsmartsystems/com.zsmartsystems.zigbee
Mockito.doNothing().when(extension).startScheduler(ArgumentMatchers.any(int.class));
extension.setUpdatePeriod(0);
extension.setUpdatePeriod(0);
Mockito.verify(extension, Mockito.times(1)).stopScheduler();
assertEquals(0, extension.getUpdatePeriod());
extension.setUpdatePeriod(1);
Mockito.verify(extension, Mockito.times(1)).startScheduler(1);
assertEquals(1, extension.getUpdatePeriod());
代码示例来源:origin: openhab/org.openhab.binding.zigbee
discoveryExtension.setUpdatePeriod(meshUpdateTime);
networkManager.addExtension(discoveryExtension);
内容来源于网络,如有侵权,请联系作者删除!