gpt4 book ai didi

com.zsmartsystems.zigbee.zcl.clusters.ZclBasicCluster.getZclVersion()方法的使用及代码示例

转载 作者:知者 更新时间:2024-03-13 12:50:05 26 4
gpt4 key购买 nike

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

ZclBasicCluster.getZclVersion介绍

[英]Synchronously get the ZCLVersion attribute [attribute ID 0].

The ZCLVersion attribute is 8 bits in length and specifies the version number of the ZigBee Cluster Library that all clusters on this endpoint conform to.

This method can return cached data if the attribute has already been received. The parameter refreshPeriod is used to control this. If the attribute has been received within refreshPeriod milliseconds, then the method will immediately return the last value received. If refreshPeriod is set to 0, then the attribute will always be updated.

This method will block until the response is received or a timeout occurs unless the current value is returned.

The attribute is of type Integer.

The implementation of this attribute by a device is MANDATORY
[中]同步获取ZCLVersion属性[attribute ID 0]。
ZCLVersion属性的长度为8位,指定此端点上的所有集群都符合的ZigBee集群库的版本号。
如果已经接收到属性,该方法可以返回缓存数据。参数refreshPeriod用于控制这一点。如果在refreshPeriod毫秒内收到属性,则该方法将立即返回最后收到的值。如果refreshPeriod设置为0,则该属性将始终更新。
除非返回当前值,否则此方法将一直阻止,直到收到响应或出现超时。
该属性的类型为Integer。
设备必须实现此属性

代码示例

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

break;
case "ZCLVERSION":
  response = basicCluster.getZclVersion(refresh);
  break;
case "HWVERSION":

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

Integer zclVersion = basicCluster.getZclVersion(Long.MAX_VALUE);
if (zclVersion != null) {
  properties.put(ZigBeeBindingConstants.THING_PROPERTY_ZCLVERSION, zclVersion.toString());

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