Logo Search packages:      
Sourcecode: libserial version File versions  Download package

unsigned char SerialPort::ReadByte ( const unsigned int  msTimeout = 0  )  throw ( NotOpen, ReadTimeout, std::runtime_error )

Read a single byte from the serial port. If no data is available in the specified number of milliseconds (msTimeout), then this method will throw ReadTimeout exception. If msTimeout is 0, then this method will block till data is available.

Definition at line 394 of file SerialPort.cpp.

{
    return mSerialPortImpl->ReadByte(msTimeout) ;
}


Generated by  Doxygen 1.6.0   Back to index