gpt4 book ai didi

com.zsmartsystems.zigbee.app.otaserver.ZclOtaUpgradeServer.cancelUpgrade()方法的使用及代码示例

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

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

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());

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