Exemplo n.º 1
0
 /// <summary>
 /// 根据SM协议头保存的状态读取数据
 /// </summary>
 /// <param name="status">SM协议装状态数据</param>
 /// <param name="byteData">数据</param>
 /// <returns></returns>
 public byte[] ReadFormSmProtocol(ref ProtocalStatusInfo status, byte[] byteData)
 {
     if (byteData.Length == status.PackectLength)
     {
         status.Received = false;
         return(byteData);
     }
     return(null);
 }
Exemplo n.º 2
0
 /// <summary>
 /// ����SMЭ��ͷ�����״̬��ȡ����
 /// </summary>
 /// <param name="status">SMЭ��װ״̬����</param>
 /// <param name="byteData">����</param>
 /// <returns></returns>
 public byte[] ReadFormSmProtocol(ref ProtocalStatusInfo status, byte[] byteData)
 {
     if (byteData.Length == status.PackectLength)
     {
         status.Received = false;
         return byteData;
     }
     return null;
 }