From a7ab4b610972e20753dfedb3e5d80e4d9f017d07 Mon Sep 17 00:00:00 2001 From: xm <1271024303@qq.com> Date: 星期五, 14 八月 2020 10:39:08 +0800 Subject: [PATCH] 临时备份,测试1 --- ZigbeeApp/Shared/Phone/ZigBee/Device/PMSensor.cs | 30 ++++++++++++++++++++++++++++++ 1 files changed, 30 insertions(+), 0 deletions(-) diff --git a/ZigbeeApp/Shared/Phone/ZigBee/Device/PMSensor.cs b/ZigbeeApp/Shared/Phone/ZigBee/Device/PMSensor.cs new file mode 100755 index 0000000..ae70ba4 --- /dev/null +++ b/ZigbeeApp/Shared/Phone/ZigBee/Device/PMSensor.cs @@ -0,0 +1,30 @@ +锘縰sing 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; + } +} -- Gitblit v1.8.0