黄学彪
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
33
34
using System;
using System.Collections.Generic;
using System.Text;
using ZigBee.Device;
 
namespace Shared.Phone.MainPage.Controls
{
    /// <summary>
    /// 温湿度传感器卡片控件
    /// </summary>
    public class DeviceTemperatureCardControl : DeviceCardCommon
    {
        #region ■ 发送获取状态命令___________________
 
        /// <summary>
        /// 发送获取状态命令
        /// </summary>
        public override void SendStatuComand()
        {
            if (Common.Config.Instance.Home.IsVirtually == true)
            {
                //如果住宅为虚拟住宅,则此功能无效
                return;
            }
            //检测能否发送获取状态命令
            if (this.CheckCanSendStatuComand() == true)
            {
                (this.device as TemperatureSensor).ReadTemperatureOrHumidity();
            }
        }
 
        #endregion
    }
}