using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace RCUHost.Protocols { /// /// 设备 /// public class Device { /// /// 设备地址 /// public string Address { get; set; } /// /// 地址类型 /// public AddressType AddressType { get; set; } /// /// 设备开关状态:1开,2关,6停(窗帘),下发1个字节 /// public byte Status { get; set; } /// /// 设备开关状态:1开,2关,6停(窗帘),接收2个字节 /// public ushort StatusReceiver { get; set; } /// /// 亮度值 /// public byte Brightness { get; set; } /// /// 回路类型 /// public Domain.DeviceType Type { get; set; } /// /// 温度 /// public byte Temperature { get; set; } /// /// 风速 /// public byte FanSpeed { get; set; } /// /// 模式 /// public byte Mode { get; set; } /// /// 阀门开关 /// public byte Valve { get; set; } /// /// 空调执行方式和内容 /// public Int32 AirExecMode { get; set; } /// /// 地暖执行方式和内容 /// public Int32 FloorHotExecMode { get; set; } /// /// 背景音乐执行方式和内容 /// public Int32 MusicExecMode { get; set; } /// /// 色温执行方式和内容 /// //public Int32 ColorTempExecMode { get; set; } } public enum AddressType { /// /// 设备地址 /// DeviceAddress = 0, /// /// 组地址 /// GroupAddress = 1 } }