黄学彪
2020-05-06 ae7c46bda98a987d170a9b8419fc014564790359
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
35
36
37
38
using System;
using System.Collections.Generic;
using System.Text;
using ZigBee.Device;
 
namespace Shared.Phone.Category.Controls
{
    /// <summary>
    /// 分类界面的温湿度传感器设备行控件
    /// </summary>
    public class DeviceTemperatureRowControl : DeviceRowCommon
    {
        #region ■ 初始化_____________________________
 
        #endregion
 
        #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
    }
}