- 使用 Spring Initializr 创建 Spring Boot 应用程序
- 在Spring Boot中配置Cassandra
- 在 Spring Boot 上配置 Tomcat 连接池
- 将Camel消息路由到嵌入WildFly的Artemis上
本文整理了Java中com.zsmartsystems.zigbee.zcl.clusters.iaszone.ZoneTypeEnum.getByValue()
方法的一些代码示例,展示了ZoneTypeEnum.getByValue()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ZoneTypeEnum.getByValue()
方法的具体详情如下:
包路径:com.zsmartsystems.zigbee.zcl.clusters.iaszone.ZoneTypeEnum
类名称:ZoneTypeEnum
方法名:getByValue
暂无
代码示例来源:origin: zsmartsystems/com.zsmartsystems.zigbee
/**
* Gets the IAS zone type for this device. This is provided by the remote device during enrollment.
*
* @return the IAS zone type as {@link ZoneTypeEnum}
*/
public ZoneTypeEnum getZoneType() {
return ZoneTypeEnum.getByValue(zoneType);
}
代码示例来源:origin: openhab/org.openhab.binding.zigbee
protected boolean supportsIasChannel(ZigBeeEndpoint endpoint, ZoneTypeEnum requiredZoneType) {
if (!hasIasZoneInputCluster(endpoint)) {
return false;
}
ZclIasZoneCluster cluster = (ZclIasZoneCluster) endpoint.getInputCluster(ZclIasZoneCluster.CLUSTER_ID);
Integer zoneTypeId = null;
for (int retry = 0; retry < 3; retry++) {
zoneTypeId = cluster.getZoneType(Long.MAX_VALUE);
if (zoneTypeId != null) {
break;
}
}
if (zoneTypeId == null) {
logger.debug("{}: Did not get IAS zone type", endpoint.getIeeeAddress());
return false;
}
ZoneTypeEnum zoneType = ZoneTypeEnum.getByValue(zoneTypeId);
logger.debug("{}: IAS zone type {}", endpoint.getIeeeAddress(), zoneType);
return zoneType == requiredZoneType;
}
代码示例来源:origin: zsmartsystems/com.zsmartsystems.zigbee
private void initialise() {
Integer currentState = iasZoneCluster.getZoneState(0);
if (currentState != null) {
ZoneStateEnum currentStateEnum = ZoneStateEnum.getByValue(currentState);
logger.debug("{}: IAS CIE state is currently {}[{}]", iasZoneCluster.getZigBeeAddress(), currentStateEnum,
currentState);
}
IeeeAddress currentIeeeAddress = iasZoneCluster.getIascieAddress(0);
logger.debug("{}: IAS CIE address is currently {}", iasZoneCluster.getZigBeeAddress(), currentIeeeAddress);
if (!ieeeAddress.equals(currentIeeeAddress)) {
// Set the CIE address in the remote device. This is where the device will send its reports.
iasZoneCluster.setIascieAddress(ieeeAddress);
currentIeeeAddress = iasZoneCluster.getIascieAddress(0);
logger.debug("{}: IAS CIE address is confirmed {}", iasZoneCluster.getZigBeeAddress(), currentIeeeAddress);
}
Integer currentZone = iasZoneCluster.getZoneId(0);
if (currentZone == null) {
logger.debug("{}: IAS CIE zone ID request failed", iasZoneCluster.getZigBeeAddress());
} else {
logger.debug("{}: IAS CIE zone ID is currently {}", iasZoneCluster.getZigBeeAddress(), currentZone);
}
Integer zoneType = iasZoneCluster.getZoneType(Long.MAX_VALUE);
if (zoneType == null) {
logger.debug("{}: IAS CIE zone type request failed", iasZoneCluster.getZigBeeAddress());
} else {
logger.debug("{}: IAS CIE zone type is 0x{}, {}", iasZoneCluster.getZigBeeAddress(),
String.format("%04X", zoneType), ZoneTypeEnum.getByValue(zoneType));
}
}
本文整理了Java中com.zsmartsystems.zigbee.zcl.ZclStatus类的一些代码示例,展示了ZclStatus类的具体用法。这些代码示例主要来源于Github/Stacko
本文整理了Java中com.zsmartsystems.zigbee.zcl.ZclAttribute类的一些代码示例,展示了ZclAttribute类的具体用法。这些代码示例主要来源于Github/
本文整理了Java中com.zsmartsystems.zigbee.zcl.ZclCluster类的一些代码示例,展示了ZclCluster类的具体用法。这些代码示例主要来源于Github/Stac
本文整理了Java中com.zsmartsystems.zigbee.zcl.ZclTransactionMatcher类的一些代码示例,展示了ZclTransactionMatcher类的具体用法。
本文整理了Java中com.zsmartsystems.zigbee.zcl.ZclCommand类的一些代码示例,展示了ZclCommand类的具体用法。这些代码示例主要来源于Github/Stac
本文整理了Java中com.zsmartsystems.zigbee.zcl.ZclHeader类的一些代码示例,展示了ZclHeader类的具体用法。这些代码示例主要来源于Github/Stacko
本文整理了Java中com.zsmartsystems.zigbee.zcl.ZclFieldDeserializer类的一些代码示例,展示了ZclFieldDeserializer类的具体用法。这些
我的问题是: Livolo 开关有自己的 Zigbee 门。我想用 CC2531 USB 加密狗从 zigbee2mqtt 连接它们。通常它可以工作,但是当我打开/关闭开关按钮(在物理设备上)时,开关
本文整理了Java中com.zsmartsystems.zigbee.zcl.protocol.ZclDataType类的一些代码示例,展示了ZclDataType类的具体用法。这些代码示例主要来源于
本文整理了Java中com.zsmartsystems.zigbee.zcl.clusters.ZclLevelControlCluster类的一些代码示例,展示了ZclLevelControlClu
本文整理了Java中com.zsmartsystems.zigbee.zcl.protocol.ZclClusterType类的一些代码示例,展示了ZclClusterType类的具体用法。这些代码示
本文整理了Java中com.zsmartsystems.zigbee.zcl.clusters.ZclOnOffCluster类的一些代码示例,展示了ZclOnOffCluster类的具体用法。这些代
本文整理了Java中com.zsmartsystems.zigbee.zcl.clusters.ZclOtaUpgradeCluster类的一些代码示例,展示了ZclOtaUpgradeCluster
本文整理了Java中com.zsmartsystems.zigbee.zcl.clusters.ZclBasicCluster类的一些代码示例,展示了ZclBasicCluster类的具体用法。这些代
本文整理了Java中com.zsmartsystems.zigbee.zcl.clusters.ZclRelativeHumidityMeasurementCluster类的一些代码示例,展示了Zcl
本文整理了Java中com.zsmartsystems.zigbee.zcl.clusters.ZclColorControlCluster类的一些代码示例,展示了ZclColorControlClu
本文整理了Java中com.zsmartsystems.zigbee.zcl.clusters.ZclOccupancySensingCluster类的一些代码示例,展示了ZclOccupancySe
本文整理了Java中com.zsmartsystems.zigbee.zcl.ZclStatus.getStatus()方法的一些代码示例,展示了ZclStatus.getStatus()的具体用法。
本文整理了Java中com.zsmartsystems.zigbee.zcl.ZclStatus.getId()方法的一些代码示例,展示了ZclStatus.getId()的具体用法。这些代码示例主要
本文整理了Java中com.zsmartsystems.zigbee.zcl.ZclAttribute.isLastValueCurrent()方法的一些代码示例,展示了ZclAttribute.is
我是一名优秀的程序员,十分优秀!