New file |
| | |
| | | using System; |
| | | using Newtonsoft.Json.Linq; |
| | | |
| | | namespace ZigBee.Device |
| | | { |
| | | [System.Serializable] |
| | | public class HumiditySensor : CommonDevice |
| | | { |
| | | /// <summary>
|
| | | /// 新风的湿度传感器
|
| | | /// </summary> |
| | | public HumiditySensor() |
| | | { |
| | | this.Type = DeviceType.FreshAirHumiditySensor; |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 湿度 |
| | | /// </summary> |
| | | public decimal currentHumidity; |
| | |
|
| | | /// <summary> |
| | | /// 读取温/湿度 |
| | | /// </summary> |
| | | public void ReadTemperatureOrHumidity() |
| | | {
|
| | | ReadAttri(Device.Cluster_ID.RelativeHumidityMeasurement, AttriButeId.MeasuredValue); |
| | | } |
| | | } |
| | | } |