namespace GatherAPI.api { /// /// 设备控制请求实体 /// public class ControlDeviceRequest { /// /// IP /// public string ip { get; set; } /// /// 端口 /// public string port { get; set; } /// /// 站号 /// public string station { get; set; } /// /// 功能码 /// public string function_code { get; set; } /// /// 数据类型 bool、byte、short、ushort、int、uint、long、ulong、float、double /// public string data_type { get; set; } /// /// 字节顺序 ABCD、BADC、CDAB、DCBA /// public string byte_order { get; set; } /// /// 是否按二进制位读取 /// public string is_bit_read { get; set; } /// /// 位索引(0-7) /// public string bit_index { get; set; } /// /// 点位 /// public string attr_value { get; set; } /// /// 值 /// public string value { get; set; } /// /// 首地址是否从0开始,1:是,0:否 /// public string start_address_from_zero { get; set; } } }