private void AtComm_PortTimeOutEvent(object sender, AtComm.AtCommEventArgs e) { Console.Write("超时"); AtComm AT = (AtComm)sender; if (AT.Index == atComm.Index) { this.BeginInvoke(new printToWindows(DoPrintToWindows)); } }
private void AtComm_PortSourceSuccessEvent(object sender, AtComm.AtCommEventArgs e) { AtComm AT = (AtComm)sender; Console.WriteLine("S:{0}", AT.SendStr); Console.WriteLine("R:{0}", AT.ReceviceStr); if (AT.Index == atComm.Index) { this.BeginInvoke(new printToWindows(DoPrintToWindows)); } }
private void AtComm_PortReceviceEvent(object sender, AtComm.AtCommEventArgs e) { }
private void AtComm_PortErrorEvent(object sender, AtComm.AtCommEventArgs e) { //myEvent.Set(); Console.Write("ERROR:{0}", e.str); }