黄学彪
2020-09-22 ade5917841b0fdcb1df7353ef7c56b1a1bdc9282
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
using System;
using ZigBee.Device;
 
namespace ZigBee.Device
{
    public class PMSensor : CommonDevice
    {
        /// <summary>
        /// PM2.5传感器对象
        /// </summary>
        public PMSensor()
        {
            this.Type = DeviceType.PMSensor;
        }
 
        /// <summary>
        /// 当前温度   
        /// </summary>
        [Newtonsoft.Json.JsonIgnore]
        public int currentTemperature = 0;
        /// <summary>
        /// 当前湿度 
        /// </summary>
        [Newtonsoft.Json.JsonIgnore]
        public int currentHumidity = 0;
        /// <summary>
        /// 当前PM2.5值
        /// </summary>
        [Newtonsoft.Json.JsonIgnore]
        public int currentPmData = 0;
    }
}