expliot.core.protocols.hardware.serial
¶
Wrapper for the serial interface.
Package Contents¶
Classes¶
A wrapper around pyserial's Serial class. |
- class expliot.core.protocols.hardware.serial.Serial¶
Bases:
serial.Serial
A wrapper around pyserial’s Serial class.
- readfull(bsize=1)¶
Read from the serial device, bsize at a time and return the complete response. Please note if timeout is not set for the Serial object, then this method will block (on read).
- Parameters
bsize – Size of buffer to pass to read() method
- Returns
bytes containing the complete response from the serial device