serial_dashboard.comms.read_all

serial_dashboard.comms.read_all(ser, read_buffer=b'', **args)

Read all available bytes from the serial port and append to the read buffer.

Parameters
  • ser (serial.Serial() instance) – The device we are reading from.

  • read_buffer (bytes, default b'') – Previous read buffer that is appended to.

Returns

output – Bytes object that contains read_buffer + read.

Return type

bytes

Notes