HDL Home App 第二版本 旧平台金堂用 正在使用
xm
2020-08-14 a7ab4b610972e20753dfedb3e5d80e4d9f017d07
ZigbeeApp/Shared/Phone/ZigBee/Device/PMSensor.cs
New file
@@ -0,0 +1,30 @@
using System;
using ZigBee.Device;
namespace ZigBee.Device
{
    public class PMSensor : CommonDevice
    {
        /// <summary>
        /// PM2.5传感器对象
        /// </summary>
        public PMSensor()
        {
            this.Type = DeviceType.PMSensor;
        }
        /// <summary>
        /// 当前温度
        /// </summary>
        public decimal currentTemperature = 0;
        /// <summary>
        /// 当前湿度
        /// </summary>
        public decimal currentHumidity = 0;
        /// <summary>
        /// 当前PM2.5值
        /// </summary>
        [Newtonsoft.Json.JsonIgnore]
        public int currentPmData = 0;
    }
}