I am working with the serialport crate on a raspberry. The given example with port.read works fine. However port.read_to_end or port.read_to_string does not work, I get a timeout.
Can anybody explain this behavior? The two functions read all bytes until EOF. I am sending test strings with null termination.
I am more interested in a read_line function. But this is not directly supported with the serialport crate, is it? Can I use the BufRead trait for this?