- 使用 Spring Initializr 创建 Spring Boot 应用程序
- 在Spring Boot中配置Cassandra
- 在 Spring Boot 上配置 Tomcat 连接池
- 将Camel消息路由到嵌入WildFly的Artemis上
本文整理了Java中com.zsmartsystems.zigbee.zcl.clusters.ZclRelativeHumidityMeasurementCluster
类的一些代码示例,展示了ZclRelativeHumidityMeasurementCluster
类的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ZclRelativeHumidityMeasurementCluster
类的具体详情如下:
包路径:com.zsmartsystems.zigbee.zcl.clusters.ZclRelativeHumidityMeasurementCluster
类名称:ZclRelativeHumidityMeasurementCluster
[英]Relative humidity measurement cluster implementation (Cluster ID 0x0405).
The server cluster provides an interface to relative humidity measurement functionality, including configuration and provision of notifications of relative humidity measurements.
Code is auto-generated. Modifications may be overwritten!
[中]相对湿度测量集群实施(集群ID 0x0405)。
服务器集群提供了相对湿度测量功能的接口,包括配置和提供相对湿度测量通知。
代码是自动生成的。修改可能会被覆盖!
代码示例来源:origin: openhab/org.openhab.binding.zigbee
@Override
public void handleRefresh() {
cluster.getMeasuredValue(0);
}
代码示例来源:origin: zsmartsystems/com.zsmartsystems.zigbee
/**
* Get the <i>MinMeasuredValue</i> attribute [attribute ID <b>1</b>].
* <p>
* The MinMeasuredValue attribute indicates the minimum value of MeasuredValue
* that can be measured. A value of 0xffff means this attribute is not defined
* <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> getMinMeasuredValueAsync() {
return read(attributes.get(ATTR_MINMEASUREDVALUE));
}
代码示例来源:origin: openhab/org.openhab.binding.zigbee
@Override
public void disposeConverter() {
cluster.removeAttributeListener(this);
}
代码示例来源:origin: openhab/org.openhab.binding.zigbee
@Override
public boolean initializeConverter() {
cluster = (ZclRelativeHumidityMeasurementCluster) endpoint
.getInputCluster(ZclRelativeHumidityMeasurementCluster.CLUSTER_ID);
if (cluster == null) {
logger.error("{}: Error opening device relative humidity measurement cluster", endpoint.getIeeeAddress());
return false;
}
bind(cluster);
// Add a listener, then request the status
cluster.addAttributeListener(this);
// Configure reporting - no faster than once per second - no slower than 10 minutes.
cluster.setMeasuredValueReporting(1, REPORTING_PERIOD_DEFAULT_MAX, 0.1);
return true;
}
代码示例来源:origin: zsmartsystems/com.zsmartsystems.zigbee
/**
* Synchronously get the <i>MinMeasuredValue</i> attribute [attribute ID <b>1</b>].
* <p>
* The MinMeasuredValue attribute indicates the minimum value of MeasuredValue
* that can be measured. A value of 0xffff means this attribute is not defined
* <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 getMinMeasuredValue(final long refreshPeriod) {
if (attributes.get(ATTR_MINMEASUREDVALUE).isLastValueCurrent(refreshPeriod)) {
return (Integer) attributes.get(ATTR_MINMEASUREDVALUE).getLastValue();
}
return (Integer) readSync(attributes.get(ATTR_MINMEASUREDVALUE));
}
代码示例来源:origin: zsmartsystems/com.zsmartsystems.zigbee
/**
* Set reporting for the <i>Tolerance</i> attribute [attribute ID <b>3</b>].
* <p>
* The Tolerance attribute indicates the magnitude of the possible error that is
* associated with MeasuredValue . The true value is located in the range
* (MeasuredValue – Tolerance) to (MeasuredValue + Tolerance).
* <p>
* The attribute is of type {@link Integer}.
* <p>
* The implementation of this attribute by a device is OPTIONAL
*
* @param minInterval {@link int} minimum reporting period
* @param maxInterval {@link int} maximum reporting period
* @param reportableChange {@link Object} delta required to trigger report
* @return the {@link Future<CommandResult>} command result future
*/
public Future<CommandResult> setToleranceReporting(final int minInterval, final int maxInterval, final Object reportableChange) {
return setReporting(attributes.get(ATTR_TOLERANCE), minInterval, maxInterval, reportableChange);
}
}
代码示例来源:origin: zsmartsystems/com.zsmartsystems.zigbee
/**
* Synchronously get the <i>Tolerance</i> attribute [attribute ID <b>3</b>].
* <p>
* The Tolerance attribute indicates the magnitude of the possible error that is
* associated with MeasuredValue . The true value is located in the range
* (MeasuredValue – Tolerance) to (MeasuredValue + Tolerance).
* <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 OPTIONAL
*
* @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 getTolerance(final long refreshPeriod) {
if (attributes.get(ATTR_TOLERANCE).isLastValueCurrent(refreshPeriod)) {
return (Integer) attributes.get(ATTR_TOLERANCE).getLastValue();
}
return (Integer) readSync(attributes.get(ATTR_TOLERANCE));
}
代码示例来源:origin: zsmartsystems/com.zsmartsystems.zigbee
/**
* Set reporting for the <i>MeasuredValue</i> attribute [attribute ID <b>0</b>].
* <p>
* MeasuredValue represents the relative humidity in % as follows:-
* <p>
* MeasuredValue = 100 x Relative humidity
* <p>
* Where 0% <= Relative humidity <= 100%, corresponding to a MeasuredValue in
* the range 0 to 0x2710.
* <p>
* The maximum resolution this format allows is 0.01%.
* <p>
* A MeasuredValue of 0xffff indicates that the measurement is invalid.
* <p>
* MeasuredValue is updated continuously as new measurements are made.
* <p>
* The attribute is of type {@link Integer}.
* <p>
* The implementation of this attribute by a device is MANDATORY
*
* @param minInterval {@link int} minimum reporting period
* @param maxInterval {@link int} maximum reporting period
* @param reportableChange {@link Object} delta required to trigger report
* @return the {@link Future<CommandResult>} command result future
*/
public Future<CommandResult> setMeasuredValueReporting(final int minInterval, final int maxInterval, final Object reportableChange) {
return setReporting(attributes.get(ATTR_MEASUREDVALUE), minInterval, maxInterval, reportableChange);
}
代码示例来源:origin: zsmartsystems/com.zsmartsystems.zigbee
/**
* Get the <i>Tolerance</i> attribute [attribute ID <b>3</b>].
* <p>
* The Tolerance attribute indicates the magnitude of the possible error that is
* associated with MeasuredValue . The true value is located in the range
* (MeasuredValue – Tolerance) to (MeasuredValue + Tolerance).
* <p>
* The attribute is of type {@link Integer}.
* <p>
* The implementation of this attribute by a device is OPTIONAL
*
* @return the {@link Future<CommandResult>} command result future
*/
public Future<CommandResult> getToleranceAsync() {
return read(attributes.get(ATTR_TOLERANCE));
}
代码示例来源:origin: zsmartsystems/com.zsmartsystems.zigbee
/**
* Synchronously get the <i>MaxMeasuredValue</i> attribute [attribute ID <b>2</b>].
* <p>
* The MaxMeasuredValue attribute indicates the maximum value of MeasuredValue
* that can be measured. A value of 0xffff means this attribute is not defined.
* <p>
* MaxMeasuredValue shall be greater than MinMeasuredValue.
* <p>
* MinMeasuredValue and MaxMeasuredValue define the range of the sensor.
* <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 getMaxMeasuredValue(final long refreshPeriod) {
if (attributes.get(ATTR_MAXMEASUREDVALUE).isLastValueCurrent(refreshPeriod)) {
return (Integer) attributes.get(ATTR_MAXMEASUREDVALUE).getLastValue();
}
return (Integer) readSync(attributes.get(ATTR_MAXMEASUREDVALUE));
}
代码示例来源:origin: zsmartsystems/com.zsmartsystems.zigbee
/**
* Get the <i>MaxMeasuredValue</i> attribute [attribute ID <b>2</b>].
* <p>
* The MaxMeasuredValue attribute indicates the maximum value of MeasuredValue
* that can be measured. A value of 0xffff means this attribute is not defined.
* <p>
* MaxMeasuredValue shall be greater than MinMeasuredValue.
* <p>
* MinMeasuredValue and MaxMeasuredValue define the range of the sensor.
* <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> getMaxMeasuredValueAsync() {
return read(attributes.get(ATTR_MAXMEASUREDVALUE));
}
代码示例来源:origin: zsmartsystems/com.zsmartsystems.zigbee
return (Integer) readSync(attributes.get(ATTR_MEASUREDVALUE));
代码示例来源:origin: zsmartsystems/com.zsmartsystems.zigbee
/**
* Get the <i>MeasuredValue</i> attribute [attribute ID <b>0</b>].
* <p>
* MeasuredValue represents the relative humidity in % as follows:-
* <p>
* MeasuredValue = 100 x Relative humidity
* <p>
* Where 0% <= Relative humidity <= 100%, corresponding to a MeasuredValue in
* the range 0 to 0x2710.
* <p>
* The maximum resolution this format allows is 0.01%.
* <p>
* A MeasuredValue of 0xffff indicates that the measurement is invalid.
* <p>
* MeasuredValue is updated continuously as new measurements are made.
* <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> getMeasuredValueAsync() {
return read(attributes.get(ATTR_MEASUREDVALUE));
}
从 Wildfly 8.2.1.Final 升级到 Wildfly 9.0.1.Final 后,我们开始收到很多警告,如下所示: WARNING [org.jgroups.protocols.TCP]
如果是,在哪里可以找到?!根据this infoq 条目,他们已经开源了。但是现在,他们的网站上没有这样的产品。 最佳答案 本页,http://terracotta.org/dl/oss-downlo
这个问题已经有答案了: 已关闭12 年前。 Possible Duplicates: Difference between clustered and nonclustered index What
我将 H2 数据库用于包含大量时间序列的环境数据。时间序列只是定期(例如每小时一次)记录在数据库中的传感器的测量值。 表中存储的数据: CREATE TABLE hydr (dt timestamp
Cluster 和 MPP super 计算机架构之间有什么区别? 最佳答案 在集群中,每台机器在内存、磁盘等方面都在很大程度上独立于其他机器。它们使用普通网络上的一些变体相互连接。集群主要存在于程序
我正在尝试为 akka 集群构建一个大脑 split 解析器。但是很难模拟某些节点无法从原始集群的其余部分访问并形成自己的集群的场景。 不能通过停止和重启节点来完成,因为新启动的节点不是同一个节点,因
我正在尝试在我的应用程序中使用集群。但是,在导入语句中,我得到“无法解析导入 com.google.maps (clustering.Cluster)”。 此外,在使用 ClusterManager
我想知道 Hive 中 Cluster By 和 CLUSTERED BY 的主要区别是什么。 Cluster By 用于对表进行分桶。并且会用到Hash函数。 CLUSTERED BY 用于在 re
我有3台机器,为redis集群创建了6个节点,我几个月前创建成功了,但现在它掉线了,我尽力修复它,但它不起作用,所以我清理所有数据并重新创建它从零开始,当我使用以下命令创建集群时,它在这里阻塞,等待节
我尝试使用 swarm 和 consul 设置 docker 集群。我有 manager、host1 和 host2。 我在管理器上运行 consul 和 swarm manager 容器。 $ do
如果我不使用 DTW 作为距离度量,那么 tslearn.clustering.TimeSeriesKMeans 和 sklearn.cluster.KMeans 是否等同? 如果不是,谁能告诉我这两
我正在研究 Flink 1.9.1 的 docker/k8s 部署可能性。 我正在阅读/观看 [1][2][3][4]。 目前我们确实认为我们会尝试采用作业集群方法,尽管我们想知道这方面的社区趋势是什
我可以使用一些关于 R 中方法的建议来确定最佳集群数,然后用不同的统计标准描述集群。我是 R 的新手,对聚类分析的统计基础有基本的了解。 确定簇数的方法:在文献中,一种常用的方法是所谓的“肘部准则”,
我有一个查询无法执行,并显示“由于文件组“DEFAULT”中磁盘空间不足,无法为数据库“TEMPDB”分配新页面”。 在排除故障的过程中,我正在检查执行计划。有两个标记为“聚集索引扫描(聚集)”的昂贵
我刚刚下载了 Elasticsearch 发行版并运行了它。 curl 'localhost:9200' { "status" : 200, "name" : "cbs", "clu
我有一个集群,其“cluster_ Purpose”设置为“dev_test”。我想将其更改为“生产”。在文档中找不到任何内容。 最佳答案 回答我自己的问题。这是不可能的。 关于Azure ML :
如何将主聚集索引更改为非聚集索引。 (作为“辅助”表,我想对“标题”表的外键列使用聚集索引。) 这对我不起作用(错误似乎是合理的:) DROP INDEX ClientUsers.PK_ClientU
我注意到,当使用 sklearn.cluster.KMeans 从方法 .cluster_centers_ 获取集群时,集群中心和每个集群的手动计算均值似乎不会给出完全相同的答案。 对于小样本量,差异
我在集群环境中使用 Quartz Scheduler 作为 Spring bean。 我有一些用@NotConcurrent 注释的作业,它们在每个集群中运行一次(即仅在一个节点中,仅在一个线程中)。
Node.js 本身有一个名为 Cluster 的核心模块(引用:http://nodejs.org/docs/v0.8.3/api/cluster.html),Learnboost 发布了一个名为
我是一名优秀的程序员,十分优秀!