serial_dashboard.parsers.parse_read
- serial_dashboard.parsers.parse_read(read, sep=',', n_reads=0)
Parse a read with incoming delimited data.
- Parameters
read (byte string) – Byte string with comma delimited time/voltage measurements.
sep (str, default ',') – Delimiting character separating columns of written data.
n_reads (int, default 0) – The number of reads that have previously been read in.
- Returns
data (list of ints) – Parsed data.
n_reads (int) – Updated number of records read.
remaining_bytes (byte string) – Remaining, unparsed bytes.