Example #1
0
 public RequestUnit(byte[] txBuffer, int receivedBytesThreshold, AsynchSerialPort.DataRecieved dataRecieved)
 {
     DataRecieved           = dataRecieved;
     TxBuffer               = txBuffer;
     ReceivedBytesThreshold = receivedBytesThreshold;
     PortAnswerType         = PortAnswerType.Byte;
     RTUReadCount           = 0;
 }
Example #2
0
 public RequestUnit(byte[] txBuffer, int receivedBytesThreshold, AsynchSerialPort.DataRecievedRTU dataRecievedRTU, int rtuReadCount, object param)
 {
     DataRecievedRTU        = dataRecievedRTU;
     TxBuffer               = txBuffer;
     ReceivedBytesThreshold = receivedBytesThreshold;
     PortAnswerType         = PortAnswerType.RTU;
     RTUReadCount           = rtuReadCount;
     Param = param;
 }