- 使用 Spring Initializr 创建 Spring Boot 应用程序
- 在Spring Boot中配置Cassandra
- 在 Spring Boot 上配置 Tomcat 连接池
- 将Camel消息路由到嵌入WildFly的Artemis上
本文整理了Java中com.zsmartsystems.zigbee.zcl.clusters.ZclBasicCluster
类的一些代码示例,展示了ZclBasicCluster
类的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ZclBasicCluster
类的具体详情如下:
包路径:com.zsmartsystems.zigbee.zcl.clusters.ZclBasicCluster
类名称:ZclBasicCluster
[英]Basic cluster implementation (Cluster ID 0x0000).
Code is auto-generated. Modifications may be overwritten!
[中]基本群集实现(群集ID 0x0000)。
代码是自动生成的。修改可能会被覆盖!
代码示例来源:origin: zsmartsystems/com.zsmartsystems.zigbee
/**
* Get the <i>ZCLVersion</i> attribute [attribute ID <b>0</b>].
* <p>
* The ZCLVersion attribute is 8 bits in length and specifies the version number of
* the ZigBee Cluster Library that all clusters on this endpoint conform to.
* <p>
* The attribute is of type {@link Integer}.
* <p>
* The implementation of this attribute by a device is MANDATORY
*
* @return the {@link Future<CommandResult>} command result future
*/
public Future<CommandResult> getZclVersionAsync() {
return read(attributes.get(ATTR_ZCLVERSION));
}
代码示例来源:origin: zsmartsystems/com.zsmartsystems.zigbee
switch (command) {
case "MANUFACTURER":
response = basicCluster.getManufacturerName(refresh);
break;
case "MODEL":
response = basicCluster.getModelIdentifier(refresh);
break;
case "APPVERSION":
response = basicCluster.getApplicationVersion(refresh);
break;
case "STKVERSION":
response = basicCluster.getStackVersion(refresh);
break;
case "ZCLVERSION":
response = basicCluster.getZclVersion(refresh);
break;
case "HWVERSION":
response = basicCluster.getHwVersion(refresh);
break;
case "DATE":
response = basicCluster.getDateCode(refresh);
break;
default:
代码示例来源:origin: openhab/org.openhab.binding.zigbee
basicCluster.getZigBeeAddress());
String manufacturer = basicCluster.getManufacturerName(Long.MAX_VALUE);
if (manufacturer != null) {
properties.put(Thing.PROPERTY_VENDOR, manufacturer.trim());
String model = basicCluster.getModelIdentifier(Long.MAX_VALUE);
if (model != null) {
properties.put(Thing.PROPERTY_MODEL_ID, model.trim());
Integer hwVersion = basicCluster.getHwVersion(Long.MAX_VALUE);
if (hwVersion != null) {
properties.put(Thing.PROPERTY_HARDWARE_VERSION, hwVersion.toString());
Integer stkVersion = basicCluster.getStackVersion(Long.MAX_VALUE);
if (stkVersion != null) {
properties.put(ZigBeeBindingConstants.THING_PROPERTY_STKVERSION, stkVersion.toString());
Integer zclVersion = basicCluster.getZclVersion(Long.MAX_VALUE);
if (zclVersion != null) {
properties.put(ZigBeeBindingConstants.THING_PROPERTY_ZCLVERSION, zclVersion.toString());
String dateCode = basicCluster.getDateCode(Long.MAX_VALUE);
if (dateCode != null) {
properties.put(ZigBeeBindingConstants.THING_PROPERTY_DATECODE, dateCode);
代码示例来源:origin: zsmartsystems/com.zsmartsystems.zigbee
/**
* Synchronously get the <i>ModelIdentifier</i> attribute [attribute ID <b>5</b>].
* <p>
* 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.
* <p>
* This method can return cached data if the attribute has already been received.
* The parameter <i>refreshPeriod</i> is used to control this. If the attribute has been received
* within <i>refreshPeriod</i> milliseconds, then the method will immediately return the last value
* received. If <i>refreshPeriod</i> is set to 0, then the attribute will always be updated.
* <p>
* This method will block until the response is received or a timeout occurs unless the current value is returned.
* <p>
* The attribute is of type {@link String}.
* <p>
* The implementation of this attribute by a device is MANDATORY
*
* @param refreshPeriod the maximum age of the data (in milliseconds) before an update is needed
* @return the {@link String} attribute value, or null on error
*/
public String getModelIdentifier(final long refreshPeriod) {
if (attributes.get(ATTR_MODELIDENTIFIER).isLastValueCurrent(refreshPeriod)) {
return (String) attributes.get(ATTR_MODELIDENTIFIER).getLastValue();
}
return (String) readSync(attributes.get(ATTR_MODELIDENTIFIER));
}
代码示例来源:origin: zsmartsystems/com.zsmartsystems.zigbee
/**
* Synchronously get the <i>ZCLVersion</i> attribute [attribute ID <b>0</b>].
* <p>
* The ZCLVersion attribute is 8 bits in length and specifies the version number of
* the ZigBee Cluster Library that all clusters on this endpoint conform to.
* <p>
* This method can return cached data if the attribute has already been received.
* The parameter <i>refreshPeriod</i> is used to control this. If the attribute has been received
* within <i>refreshPeriod</i> milliseconds, then the method will immediately return the last value
* received. If <i>refreshPeriod</i> is set to 0, then the attribute will always be updated.
* <p>
* This method will block until the response is received or a timeout occurs unless the current value is returned.
* <p>
* The attribute is of type {@link Integer}.
* <p>
* The implementation of this attribute by a device is MANDATORY
*
* @param refreshPeriod the maximum age of the data (in milliseconds) before an update is needed
* @return the {@link Integer} attribute value, or null on error
*/
public Integer getZclVersion(final long refreshPeriod) {
if (attributes.get(ATTR_ZCLVERSION).isLastValueCurrent(refreshPeriod)) {
return (Integer) attributes.get(ATTR_ZCLVERSION).getLastValue();
}
return (Integer) readSync(attributes.get(ATTR_ZCLVERSION));
}
代码示例来源:origin: zsmartsystems/com.zsmartsystems.zigbee
/**
* Get the <i>SWBuildID</i> attribute [attribute ID <b>16384</b>].
* <p>
* The SWBuildIDattribute represents a detailed, manufacturer-specific reference to the version of the software.
* <p>
* The attribute is of type {@link String}.
* <p>
* The implementation of this attribute by a device is OPTIONAL
*
* @return the {@link Future<CommandResult>} command result future
*/
public Future<CommandResult> getSwBuildIdAsync() {
return read(attributes.get(ATTR_SWBUILDID));
}
代码示例来源:origin: zsmartsystems/com.zsmartsystems.zigbee
/**
* Synchronously get the <i>HWVersion</i> attribute [attribute ID <b>3</b>].
* <p>
* The HWVersion attribute is 8 bits in length and specifies the version number of
* the hardware of the device. The usage of this attribute is manufacturer dependent.
* <p>
* This method can return cached data if the attribute has already been received.
* The parameter <i>refreshPeriod</i> is used to control this. If the attribute has been received
* within <i>refreshPeriod</i> milliseconds, then the method will immediately return the last value
* received. If <i>refreshPeriod</i> is set to 0, then the attribute will always be updated.
* <p>
* This method will block until the response is received or a timeout occurs unless the current value is returned.
* <p>
* The attribute is of type {@link Integer}.
* <p>
* The implementation of this attribute by a device is MANDATORY
*
* @param refreshPeriod the maximum age of the data (in milliseconds) before an update is needed
* @return the {@link Integer} attribute value, or null on error
*/
public Integer getHwVersion(final long refreshPeriod) {
if (attributes.get(ATTR_HWVERSION).isLastValueCurrent(refreshPeriod)) {
return (Integer) attributes.get(ATTR_HWVERSION).getLastValue();
}
return (Integer) readSync(attributes.get(ATTR_HWVERSION));
}
代码示例来源:origin: zsmartsystems/com.zsmartsystems.zigbee
/**
* Get the <i>LocationDescription</i> attribute [attribute ID <b>16</b>].
* <p>
* The LocationDescription attribute is a maximum of 16 bytes in length and describes
* the physical location of the device as a ZigBee character string.
* <p>
* The attribute is of type {@link String}.
* <p>
* The implementation of this attribute by a device is MANDATORY
*
* @return the {@link Future<CommandResult>} command result future
*/
public Future<CommandResult> getLocationDescriptionAsync() {
return read(attributes.get(ATTR_LOCATIONDESCRIPTION));
}
代码示例来源:origin: zsmartsystems/com.zsmartsystems.zigbee
/**
* Synchronously get the <i>ManufacturerName</i> attribute [attribute ID <b>4</b>].
* <p>
* The ManufacturerName attribute is a maximum of 32 bytes in length and specifies
* the name of the manufacturer as a ZigBee character string.
* <p>
* This method can return cached data if the attribute has already been received.
* The parameter <i>refreshPeriod</i> is used to control this. If the attribute has been received
* within <i>refreshPeriod</i> milliseconds, then the method will immediately return the last value
* received. If <i>refreshPeriod</i> is set to 0, then the attribute will always be updated.
* <p>
* This method will block until the response is received or a timeout occurs unless the current value is returned.
* <p>
* The attribute is of type {@link String}.
* <p>
* The implementation of this attribute by a device is MANDATORY
*
* @param refreshPeriod the maximum age of the data (in milliseconds) before an update is needed
* @return the {@link String} attribute value, or null on error
*/
public String getManufacturerName(final long refreshPeriod) {
if (attributes.get(ATTR_MANUFACTURERNAME).isLastValueCurrent(refreshPeriod)) {
return (String) attributes.get(ATTR_MANUFACTURERNAME).getLastValue();
}
return (String) readSync(attributes.get(ATTR_MANUFACTURERNAME));
}
代码示例来源:origin: zsmartsystems/com.zsmartsystems.zigbee
/**
* Get the <i>PhysicalEnvironment</i> attribute [attribute ID <b>17</b>].
* <p>
* The PhysicalEnvironment attribute is 8 bits in length and specifies the type of
* physical environment in which the device will operate.
* <p>
* The attribute is of type {@link Integer}.
* <p>
* The implementation of this attribute by a device is MANDATORY
*
* @return the {@link Future<CommandResult>} command result future
*/
public Future<CommandResult> getPhysicalEnvironmentAsync() {
return read(attributes.get(ATTR_PHYSICALENVIRONMENT));
}
代码示例来源:origin: zsmartsystems/com.zsmartsystems.zigbee
/**
* Synchronously get the <i>PhysicalEnvironment</i> attribute [attribute ID <b>17</b>].
* <p>
* The PhysicalEnvironment attribute is 8 bits in length and specifies the type of
* physical environment in which the device will operate.
* <p>
* This method can return cached data if the attribute has already been received.
* The parameter <i>refreshPeriod</i> is used to control this. If the attribute has been received
* within <i>refreshPeriod</i> milliseconds, then the method will immediately return the last value
* received. If <i>refreshPeriod</i> is set to 0, then the attribute will always be updated.
* <p>
* This method will block until the response is received or a timeout occurs unless the current value is returned.
* <p>
* The attribute is of type {@link Integer}.
* <p>
* The implementation of this attribute by a device is MANDATORY
*
* @param refreshPeriod the maximum age of the data (in milliseconds) before an update is needed
* @return the {@link Integer} attribute value, or null on error
*/
public Integer getPhysicalEnvironment(final long refreshPeriod) {
if (attributes.get(ATTR_PHYSICALENVIRONMENT).isLastValueCurrent(refreshPeriod)) {
return (Integer) attributes.get(ATTR_PHYSICALENVIRONMENT).getLastValue();
}
return (Integer) readSync(attributes.get(ATTR_PHYSICALENVIRONMENT));
}
代码示例来源:origin: zsmartsystems/com.zsmartsystems.zigbee
/**
* Get the <i>HWVersion</i> attribute [attribute ID <b>3</b>].
* <p>
* The HWVersion attribute is 8 bits in length and specifies the version number of
* the hardware of the device. The usage of this attribute is manufacturer dependent.
* <p>
* The attribute is of type {@link Integer}.
* <p>
* The implementation of this attribute by a device is MANDATORY
*
* @return the {@link Future<CommandResult>} command result future
*/
public Future<CommandResult> getHwVersionAsync() {
return read(attributes.get(ATTR_HWVERSION));
}
代码示例来源:origin: zsmartsystems/com.zsmartsystems.zigbee
/**
* Synchronously get the <i>SWBuildID</i> attribute [attribute ID <b>16384</b>].
* <p>
* The SWBuildIDattribute represents a detailed, manufacturer-specific reference to the version of the software.
* <p>
* This method can return cached data if the attribute has already been received.
* The parameter <i>refreshPeriod</i> is used to control this. If the attribute has been received
* within <i>refreshPeriod</i> milliseconds, then the method will immediately return the last value
* received. If <i>refreshPeriod</i> is set to 0, then the attribute will always be updated.
* <p>
* This method will block until the response is received or a timeout occurs unless the current value is returned.
* <p>
* The attribute is of type {@link String}.
* <p>
* The implementation of this attribute by a device is OPTIONAL
*
* @param refreshPeriod the maximum age of the data (in milliseconds) before an update is needed
* @return the {@link String} attribute value, or null on error
*/
public String getSwBuildId(final long refreshPeriod) {
if (attributes.get(ATTR_SWBUILDID).isLastValueCurrent(refreshPeriod)) {
return (String) attributes.get(ATTR_SWBUILDID).getLastValue();
}
return (String) readSync(attributes.get(ATTR_SWBUILDID));
}
代码示例来源:origin: zsmartsystems/com.zsmartsystems.zigbee
/**
* Get the <i>ManufacturerName</i> attribute [attribute ID <b>4</b>].
* <p>
* The ManufacturerName attribute is a maximum of 32 bytes in length and specifies
* the name of the manufacturer as a ZigBee character string.
* <p>
* The attribute is of type {@link String}.
* <p>
* The implementation of this attribute by a device is MANDATORY
*
* @return the {@link Future<CommandResult>} command result future
*/
public Future<CommandResult> getManufacturerNameAsync() {
return read(attributes.get(ATTR_MANUFACTURERNAME));
}
代码示例来源:origin: zsmartsystems/com.zsmartsystems.zigbee
/**
* Synchronously get the <i>LocationDescription</i> attribute [attribute ID <b>16</b>].
* <p>
* The LocationDescription attribute is a maximum of 16 bytes in length and describes
* the physical location of the device as a ZigBee character string.
* <p>
* This method can return cached data if the attribute has already been received.
* The parameter <i>refreshPeriod</i> is used to control this. If the attribute has been received
* within <i>refreshPeriod</i> milliseconds, then the method will immediately return the last value
* received. If <i>refreshPeriod</i> is set to 0, then the attribute will always be updated.
* <p>
* This method will block until the response is received or a timeout occurs unless the current value is returned.
* <p>
* The attribute is of type {@link String}.
* <p>
* The implementation of this attribute by a device is MANDATORY
*
* @param refreshPeriod the maximum age of the data (in milliseconds) before an update is needed
* @return the {@link String} attribute value, or null on error
*/
public String getLocationDescription(final long refreshPeriod) {
if (attributes.get(ATTR_LOCATIONDESCRIPTION).isLastValueCurrent(refreshPeriod)) {
return (String) attributes.get(ATTR_LOCATIONDESCRIPTION).getLastValue();
}
return (String) readSync(attributes.get(ATTR_LOCATIONDESCRIPTION));
}
代码示例来源:origin: zsmartsystems/com.zsmartsystems.zigbee
/**
* Get the <i>DeviceEnabled</i> attribute [attribute ID <b>18</b>].
* <p>
* The DeviceEnabled attribute is a boolean and specifies whether the device is enabled
* or disabled.
* <p>
* The attribute is of type {@link Boolean}.
* <p>
* The implementation of this attribute by a device is MANDATORY
*
* @return the {@link Future<CommandResult>} command result future
*/
public Future<CommandResult> getDeviceEnabledAsync() {
return read(attributes.get(ATTR_DEVICEENABLED));
}
代码示例来源:origin: zsmartsystems/com.zsmartsystems.zigbee
/**
* Synchronously get the <i>DeviceEnabled</i> attribute [attribute ID <b>18</b>].
* <p>
* The DeviceEnabled attribute is a boolean and specifies whether the device is enabled
* or disabled.
* <p>
* This method can return cached data if the attribute has already been received.
* The parameter <i>refreshPeriod</i> is used to control this. If the attribute has been received
* within <i>refreshPeriod</i> milliseconds, then the method will immediately return the last value
* received. If <i>refreshPeriod</i> is set to 0, then the attribute will always be updated.
* <p>
* This method will block until the response is received or a timeout occurs unless the current value is returned.
* <p>
* The attribute is of type {@link Boolean}.
* <p>
* The implementation of this attribute by a device is MANDATORY
*
* @param refreshPeriod the maximum age of the data (in milliseconds) before an update is needed
* @return the {@link Boolean} attribute value, or null on error
*/
public Boolean getDeviceEnabled(final long refreshPeriod) {
if (attributes.get(ATTR_DEVICEENABLED).isLastValueCurrent(refreshPeriod)) {
return (Boolean) attributes.get(ATTR_DEVICEENABLED).getLastValue();
}
return (Boolean) readSync(attributes.get(ATTR_DEVICEENABLED));
}
代码示例来源:origin: zsmartsystems/com.zsmartsystems.zigbee
/**
* Get the <i>ModelIdentifier</i> attribute [attribute ID <b>5</b>].
* <p>
* 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.
* <p>
* The attribute is of type {@link String}.
* <p>
* The implementation of this attribute by a device is MANDATORY
*
* @return the {@link Future<CommandResult>} command result future
*/
public Future<CommandResult> getModelIdentifierAsync() {
return read(attributes.get(ATTR_MODELIDENTIFIER));
}
代码示例来源:origin: zsmartsystems/com.zsmartsystems.zigbee
/**
* Synchronously get the <i>AlarmMask</i> attribute [attribute ID <b>19</b>].
* <p>
* The AlarmMask attribute is 8 bits in length and specifies which of a number of general
* alarms may be generated.
* <p>
* This method can return cached data if the attribute has already been received.
* The parameter <i>refreshPeriod</i> is used to control this. If the attribute has been received
* within <i>refreshPeriod</i> milliseconds, then the method will immediately return the last value
* received. If <i>refreshPeriod</i> is set to 0, then the attribute will always be updated.
* <p>
* This method will block until the response is received or a timeout occurs unless the current value is returned.
* <p>
* The attribute is of type {@link Integer}.
* <p>
* The implementation of this attribute by a device is MANDATORY
*
* @param refreshPeriod the maximum age of the data (in milliseconds) before an update is needed
* @return the {@link Integer} attribute value, or null on error
*/
public Integer getAlarmMask(final long refreshPeriod) {
if (attributes.get(ATTR_ALARMMASK).isLastValueCurrent(refreshPeriod)) {
return (Integer) attributes.get(ATTR_ALARMMASK).getLastValue();
}
return (Integer) readSync(attributes.get(ATTR_ALARMMASK));
}
代码示例来源:origin: zsmartsystems/com.zsmartsystems.zigbee
/**
* Get the <i>AlarmMask</i> attribute [attribute ID <b>19</b>].
* <p>
* The AlarmMask attribute is 8 bits in length and specifies which of a number of general
* alarms may be generated.
* <p>
* The attribute is of type {@link Integer}.
* <p>
* The implementation of this attribute by a device is MANDATORY
*
* @return the {@link Future<CommandResult>} command result future
*/
public Future<CommandResult> getAlarmMaskAsync() {
return read(attributes.get(ATTR_ALARMMASK));
}
Zigbee 和 Zigbee PRO 之间有什么区别(如果有)? 我在维基百科和 official Zigbee site 上找不到任何具体内容这一切都归结为一些优化。 实际使用上有什么区别吗? 最
是否可以使用 XBee PRO S2B 与 ZigBee HA(家庭自动化)配置文件传感器进行通信?如果可以,如何进行通信?有谁知道我在哪里可以找到有关 ZigBee HA 配置文件的规范? 非常感谢
我已经有一段时间不了解 ZigBee 了。谁拥有最成熟的 Zigbee 堆栈?是 Microchip、Chipcon 还是 Atmel? 是否有价格低于 10 美元的 RF 模块? 我记得不久前某些堆
我之前的经验是能够接收我的温度/湿度zigbee传感器发送的数据。此外,我还可以发送命令来控制 zigbee 功率计/开关。 我购买了一个运动检测传感器,其中包含一行 IAS 数据包的文档。我知道这是
我之前的经验是能够接收我的温度/湿度zigbee传感器发送的数据。此外,我还可以发送命令来控制 zigbee 功率计/开关。 我购买了一个运动检测传感器,其中包含一行 IAS 数据包的文档。我知道这是
我目前正在研究 ZigBee,我遇到了以下问题: 每个 ZigBee 设备都有一个 16 位短地址,这意味着我最多可以连接 2^16=65536 个不同的设备(当然减去一些保留地址)。现在每个设备最多
关于这个问题,我询问了一些从事ZigBee应用开发的开发人员。他们告诉我,一个 radio 模块(对我来说,这是指一个节点,同一件事)在形成网络时只能有一个配置文件。 但是,当我阅读“Drew Gis
智能家居连接,不仅仅只有 Wi-Fi 和蓝牙这些大家熟悉的技术,还有一些更加符合智能家居应用的行业专有协议,比如Zigbee,Z-Wave 和 Thread等等。 当谈到家庭自动化时
本文整理了Java中com.zsmartsystems.zigbee.ZigBeeApsFrame类的一些代码示例,展示了ZigBeeApsFrame类的具体用法。这些代码示例主要来源于Github/
本文整理了Java中com.zsmartsystems.zigbee.ZigBeeEndpointAddress类的一些代码示例,展示了ZigBeeEndpointAddress类的具体用法。这些代码
本文整理了Java中com.zsmartsystems.zigbee.ZigBeeChannel类的一些代码示例,展示了ZigBeeChannel类的具体用法。这些代码示例主要来源于Github/St
本文整理了Java中com.zsmartsystems.zigbee.ZigBeeNetworkManager类的一些代码示例,展示了ZigBeeNetworkManager类的具体用法。这些代码示例
本文整理了Java中com.zsmartsystems.zigbee.ZigBeeEndpoint类的一些代码示例,展示了ZigBeeEndpoint类的具体用法。这些代码示例主要来源于Github/
本文整理了Java中com.zsmartsystems.zigbee.ZigBeeNode类的一些代码示例,展示了ZigBeeNode类的具体用法。这些代码示例主要来源于Github/Stackove
本文整理了Java中com.zsmartsystems.zigbee.ZigBeeProfileType类的一些代码示例,展示了ZigBeeProfileType类的具体用法。这些代码示例主要来源于G
本文整理了Java中com.zsmartsystems.zigbee.ZigBeeAddress类的一些代码示例,展示了ZigBeeAddress类的具体用法。这些代码示例主要来源于Github/St
本文整理了Java中com.zsmartsystems.zigbee.ZigBeeGroupAddress类的一些代码示例,展示了ZigBeeGroupAddress类的具体用法。这些代码示例主要来源
本文整理了Java中com.zsmartsystems.zigbee.ZigBeeCommand类的一些代码示例,展示了ZigBeeCommand类的具体用法。这些代码示例主要来源于Github/St
本文整理了Java中com.zsmartsystems.zigbee.ZigBeeNetworkNodeListener类的一些代码示例,展示了ZigBeeNetworkNodeListener类的具
本文整理了Java中com.zsmartsystems.zigbee.ZigBeeBroadcastDestination类的一些代码示例,展示了ZigBeeBroadcastDestination类
我是一名优秀的程序员,十分优秀!