gpt4 book ai didi

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

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

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

ZigBeeEndpoint.addApplication介绍

[英]Adds an application and makes it available to this endpoint. The cluster used by the server must be in the output clusters list and this will be passed to the ZclApplication#serverStartup()) method to start the application.
[中]添加应用程序并使其可用于此端点。服务器使用的集群必须在输出集群列表中,这将被传递给ZclApplication#serverStartup())方法以启动应用程序。

代码示例

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

@Override
public void nodeAdded(ZigBeeNode node) {
  for (ZigBeeEndpoint endpoint : node.getEndpoints()) {
    if (endpoint.getOutputCluster(ZclOtaUpgradeCluster.CLUSTER_ID) != null) {
      endpoint.addApplication(new ZclOtaUpgradeServer());
      break;
    }
  }
}

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

endpoint.addApplication(otaServer);

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

@Override
public void nodeAdded(ZigBeeNode node) {
  for (ZigBeeEndpoint endpoint : node.getEndpoints()) {
    if (endpoint.getInputCluster(ZclIasZoneCluster.CLUSTER_ID) != null) {
      endpoint.addApplication(new ZclIasZoneClient(networkManager.getNode(0).getIeeeAddress(), 0));
      break;
    }
  }
}

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

otaEndpoint.addApplication(otaServer);

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