Пример #1
0
 // Data coming in from ComPort
 void ControlSystem_SerialDataReceived(ComPort ReceivingComPort, ComPortSerialDataEventArgs args)
 {
     if (ReceivingComPort == ComPorts[2])
     {
         rxQueue.Enqueue(args.SerialData);
     }
 }
Пример #2
0
 /// <summary>
 /// Method to handle com port received events from the Dm Rmc. 
 /// </summary>
 /// <param name="ReceivingComPort">Reference to the com port raising this event.</param>
 /// <param name="args">Information about the event being raised.</param>
 void DmRmc_SerialDataReceived(ComPort ReceivingComPort, ComPortSerialDataEventArgs args)
 {
     CrestronConsole.PrintLine("Received from Dm Rmc com port: {0}", args.SerialData);
 }
 void myComPort_SerialDataReceived(ComPort ReceivingComPort, ComPortSerialDataEventArgs args)
 {
     RxQueue.Enqueue(args.SerialData);
 }