AT Response相对来说比较简单,就是包含一些数据,没有包含什么行为(也就是方法)。
public class AtResponse
{
public AtCommand AtCommand { get; set; }
public string RawResponse { get; set; }
public bool HasCommandEchoed { get; set; }
public ResultCode? ResultCode { get; set; }
public string[] CmeExtendedReasonCodeLines { get; set; }
public string[] CmsExtendedReasonCodeLines { get; set; }
public DataLines DataLines { get; set; }
public string[] UnsolicitedResponseLines { get; set; }
public override string ToString()
{
return string.Format("[Command]\n{0}\n[Response]\n{1}\n",
AtCommand, RawResponse);
}
}
本文深入解析了ATResponse类的结构和属性,该类用于封装AT命令的响应数据,包括原始响应、命令回显状态、结果代码等关键信息。
984

被折叠的 条评论
为什么被折叠?



