gpt4 book ai didi

com.zsmartsystems.zigbee.ZigBeeNetworkManager.addSupportedCluster()方法的使用及代码示例

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

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

ZigBeeNetworkManager.addSupportedCluster介绍

[英]Adds a cluster to the list of clusters we will respond to with the MatchDescriptorRequest. Adding a cluster here is only required in order to respond to this request. Typically the application should provide further support for such clusters.
[中]将集群添加到我们将使用MatchDescriptorRequest响应的集群列表中。在这里添加集群只是为了响应这个请求。通常,应用程序应该为此类集群提供进一步的支持。

代码示例

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

@Override
public ZigBeeStatus extensionInitialize(ZigBeeNetworkManager networkManager) {
  this.networkManager = networkManager;
  networkManager.addSupportedCluster(ZclIasZoneCluster.CLUSTER_ID);
  networkManager.addNetworkNodeListener(this);
  return ZigBeeStatus.SUCCESS;
}

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

@Override
public ZigBeeStatus extensionInitialize(ZigBeeNetworkManager networkManager) {
  this.networkManager = networkManager;
  networkManager.addSupportedCluster(ZclOtaUpgradeCluster.CLUSTER_ID);
  networkManager.addNetworkNodeListener(this);
  return ZigBeeStatus.SUCCESS;
}

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

/**
   * {@inheritDoc}
   */
  @Override
  public boolean process(final ZigBeeApi zigbeeApi, final String[] args, PrintStream out) throws Exception {
    if (args.length != 2) {
      return false;
    }
    int clusterId = 0;
    if (args[1].startsWith("0x")) {
      clusterId = Integer.parseInt(args[1].substring(2), 16);
    } else {
      clusterId = Integer.parseInt(args[1]);
    }
    networkManager.addSupportedCluster(clusterId);
    print("Added cluster " + String.format("0x%X", clusterId) + " to match descriptor list.", out);
    return true;
  }
}

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

networkManager.addSupportedCluster(ZclIasZoneCluster.CLUSTER_ID);

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

networkManager.addSupportedCluster(ZclIasZoneCluster.CLUSTER_ID);

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