本文整理了Java中com.zsmartsystems.zigbee.ZigBeeEndpoint.setOutputClusterIds()
方法的一些代码示例,展示了ZigBeeEndpoint.setOutputClusterIds()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ZigBeeEndpoint.setOutputClusterIds()
方法的具体详情如下:
包路径:com.zsmartsystems.zigbee.ZigBeeEndpoint
类名称:ZigBeeEndpoint
方法名:setOutputClusterIds
[英]Sets output cluster IDs. This will add any new clusters in the list, and remove any that are no longer in the list.
[中]设置输出群集ID。这将在列表中添加任何新集群,并删除任何不再在列表中的集群。
代码示例来源:origin: openhab/org.openhab.binding.zigbee
if (!staticClusters.isEmpty()) {
logger.debug("{}: Forcing endpoint {} output clusters {}", nodeIeeeAddress, endpointId, staticClusters);
endpoint.setOutputClusterIds(staticClusters);
modified = true;
代码示例来源:origin: zsmartsystems/com.zsmartsystems.zigbee
endpoint.setOutputClusterIds(outClusters);
ZigBeeOtaStatusCallback mockedCallback = Mockito.mock(ZigBeeOtaStatusCallback.class);
otaStatusCapture = new ArrayList<ZigBeeOtaServerStatus>();
代码示例来源:origin: zsmartsystems/com.zsmartsystems.zigbee
endpoint.setDeviceVersion(simpleDescriptor.getDeviceVersion());
endpoint.setInputClusterIds(simpleDescriptor.getInputClusterList());
endpoint.setOutputClusterIds(simpleDescriptor.getOutputClusterList());
代码示例来源:origin: zsmartsystems/com.zsmartsystems.zigbee
@Test
public void testOutputClusterIds() {
ZigBeeEndpoint endpoint = getEndpoint();
List<Integer> clusterIdList = new ArrayList<Integer>();
clusterIdList.add(ZclAlarmsCluster.CLUSTER_ID);
clusterIdList.add(ZclBasicCluster.CLUSTER_ID);
clusterIdList.add(ZclColorControlCluster.CLUSTER_ID);
clusterIdList.add(ZclDoorLockCluster.CLUSTER_ID);
clusterIdList.add(ZclLevelControlCluster.CLUSTER_ID);
endpoint.setOutputClusterIds(clusterIdList);
assertEquals(5, endpoint.getOutputClusterIds().size());
assertNotNull(endpoint.getOutputCluster(ZclAlarmsCluster.CLUSTER_ID));
assertTrue(endpoint.getOutputCluster(ZclAlarmsCluster.CLUSTER_ID).isClient());
assertFalse(endpoint.getOutputCluster(ZclAlarmsCluster.CLUSTER_ID).isServer());
assertNotNull(endpoint.getOutputCluster(ZclLevelControlCluster.CLUSTER_ID));
assertTrue(endpoint.getOutputCluster(ZclLevelControlCluster.CLUSTER_ID).isClient());
assertFalse(endpoint.getOutputCluster(ZclLevelControlCluster.CLUSTER_ID).isServer());
clusterIdList = new ArrayList<Integer>();
clusterIdList.add(ZclAlarmsCluster.CLUSTER_ID);
clusterIdList.add(ZclBasicCluster.CLUSTER_ID);
assertTrue(endpoint.getOutputCluster(ZclAlarmsCluster.CLUSTER_ID).isClient());
assertFalse(endpoint.getOutputCluster(ZclLevelControlCluster.CLUSTER_ID).isServer());
assertTrue(endpoint.addOutputCluster(new ZclScenesCluster(endpoint)));
assertFalse(endpoint.addOutputCluster(new ZclScenesCluster(endpoint)));
assertTrue(endpoint.getOutputClusterIds().contains(ZclScenesCluster.CLUSTER_ID));
assertTrue(endpoint.getInputClusterIds().isEmpty());
System.out.println(endpoint.toString());
}
内容来源于网络,如有侵权,请联系作者删除!