expliot.core.protocols.hardware.serial¶
Wrapper for the serial interface.
Classes¶
A wrapper around pyserial's Serial class. |
Package Contents¶
- class expliot.core.protocols.hardware.serial.Serial¶
Bases:
serial.SerialA wrapper around pyserial’s Serial class.
- readfull(bsize=1)¶
Read from the serial device, bsize at a time.
It will 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