private void DatoRecibido(object sender, SerialDataReceivedEventArgs e) { string Data_in = SpPuertos.ReadExisting(); MessageBox.Show(Data_in); TxtRecibidos.Text = Data_in; }
private void DatoRecibido(object sender, SerialDataReceivedEventArgs e) { AccesoInterrupcion(SpPuertos.ReadExisting()); /*string Data_in = SpPuertos.ReadExisting(); * MessageBox.Show(Data_in); * TxtDatosRecibidos.Text = Data_in;*/ }
private void DatoRecibido(object sender, SerialDataReceivedEventArgs e) { //----Se recibe el mensaje a través de DELEGADOS ???-------------- AccesoInterrupcion(SpPuertos.ReadExisting()); /*string Data_in = SpPuertos.ReadExisting(); * MessageBox.Show(Data_in); * TxtDatosRecibidos.Text = Data_in;*/ }
private void Datorecibido(object sender, SerialDataReceivedEventArgs e) { /*string Data_in = SpPuertos.ReadExisting(); * * MessageBox.Show(Data_in); * * //string Data2_in = Data_in; * * //DatosRecibidos.Items.Add(Data2_in);*/ AccesoInterrupcion(SpPuertos.ReadExisting()); }
private void SpPuertos_DataReceived(object sender, SerialDataReceivedEventArgs eventArgs) { if (SpPuertos.IsOpen) { // SerialPort sp = (SerialPort)sender; AccesoInterrupcion(SpPuertos.ReadExisting()); } else { MessageBox.Show("Error, el puerto COM no esta abierto"); } }