예제 #1
0
        private void DatoRecibido(object sender, SerialDataReceivedEventArgs e)
        {
            string Data_in = SpPuertos.ReadExisting();

            MessageBox.Show(Data_in);
            TxtRecibidos.Text = Data_in;
        }
예제 #2
0
        private void DatoRecibido(object sender, SerialDataReceivedEventArgs e)
        {
            AccesoInterrupcion(SpPuertos.ReadExisting());

            /*string Data_in = SpPuertos.ReadExisting();
             * MessageBox.Show(Data_in);
             * TxtDatosRecibidos.Text = Data_in;*/
        }
예제 #3
0
        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;*/
        }
예제 #4
0
        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());
        }
예제 #5
0
 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");
     }
 }