SuZhouZhanFang/suzhou-iot-service/GatherAPI/api/ControlDeviceRequest.cs

64 lines
1.5 KiB
C#
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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