本文整理了Java中com.zsmartsystems.zigbee.app.otaserver.ZclOtaUpgradeServer.cancelUpgrade()
方法的一些代码示例,展示了ZclOtaUpgradeServer.cancelUpgrade()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ZclOtaUpgradeServer.cancelUpgrade()
方法的具体详情如下:
包路径:com.zsmartsystems.zigbee.app.otaserver.ZclOtaUpgradeServer
类名称:ZclOtaUpgradeServer
方法名:cancelUpgrade
[英]Cancels any upgrade transfers that are in progress and removes the current file. If a transfer is currently in progress, then the listeners are notified.
[中]取消正在进行的任何升级传输并删除当前文件。如果当前正在进行传输,则会通知侦听器。
代码示例来源:origin: openhab/org.openhab.binding.zigbee
finalOtaServer.cancelUpgrade();
代码示例来源:origin: zsmartsystems/com.zsmartsystems.zigbee
server.setTransferTimeoutPeriod(Integer.MAX_VALUE);
server.cancelUpgrade();
assertEquals(0, otaStatusCapture.size());
server.cancelUpgrade();
Awaitility.await().atMost(1000, TimeUnit.MILLISECONDS).until(() -> otaListenerUpdated());
内容来源于网络,如有侵权,请联系作者删除!