gpt4 book ai didi

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

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

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

ZclBasicCluster.getModelIdentifier介绍

[英]Synchronously get the ModelIdentifier attribute [attribute ID 5].

The ModelIdentifier attribute is a maximum of 32 bytes in length and specifies the model number (or other identifier) assigned by the manufacturer as a ZigBee character string.

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 String.

The implementation of this attribute by a device is MANDATORY
[中]同步获取ModelIdentifier属性[属性ID 5]。
ModelIdentifier属性的最大长度为32字节,并将制造商指定为ZigBee字符串的型号(或其他标识符)。
如果已经接收到属性,该方法可以返回缓存数据。参数refreshPeriod用于控制这一点。如果在refreshPeriod毫秒内收到属性,则该方法将立即返回最后收到的值。如果refreshPeriod设置为0,则该属性将始终更新。
除非返回当前值,否则此方法将一直阻止,直到收到响应或出现超时。
该属性的类型为String。
设备必须实现此属性

代码示例

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

break;
case "MODEL":
  response = basicCluster.getModelIdentifier(refresh);
  break;
case "APPVERSION":

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

String model = basicCluster.getModelIdentifier(Long.MAX_VALUE);
if (model != null) {
  properties.put(Thing.PROPERTY_MODEL_ID, model.trim());

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