using System;
using System.Collections.Generic;
using System.Text;
using ZigBee.Device;
namespace Shared.Phone.Category.Controls
{
///
/// 分类界面的温湿度传感器设备行控件
///
public class DeviceTemperatureRowControl : DeviceRowCommon
{
#region ■ 初始化_____________________________
#endregion
#region ■ 发送获取状态命令___________________
///
/// 发送获取状态命令
///
public override void SendStatuComand()
{
//如果住宅为虚拟住宅,此功能无效
if (Common.Config.Instance.Home.IsVirtually == true)
{
return;
}
//检测能否发送获取状态命令
if (this.CheckCanSendStatuComand() == true)
{
(this.device as TemperatureSensor).ReadTemperatureOrHumidity();
}
}
#endregion
}
}