public static void readStr(object sender, AtComm.PortReceviceEventArgs e) { AtComm atComm = (AtComm)sender; if (e.ReceviceStr.Length > 0) { if (atComm.hopeStr.ToUpper() != e.ReceviceStr.ToUpper()) { if (e.ReceviceStr.StartsWith(atComm.sendStr)) { atComm.tempStr += e.ReceviceStr; } } else { Console.WriteLine("True"); } } }
private void AtComm_PortRecevice(object sender, AtComm.PortReceviceEventArgs e) { Console.WriteLine("atCommEvent:" + e.ReceviceStr); }