Raspberry Pi pico reads the serial data with uart.readline() will accept incomplete data.

Joined
Jul 30, 2021
Messages
20
Likes
3
Raspberry Pi pico reads the serial data with uart.readline() will accept incomplete data.
How do I solve this problem?
 
Make sure to specify a timeout, this way the pi will wait at least that long before returning incomplete data to you. You can also store the incomplete data until you get to the end of a line.
 
Back
Top