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?
 

cheese

the tallest memer in town
Staff member
.
.
.
Joined
Mar 2, 2016
Messages
2,768
Likes
2,465
Location
Florida
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.
 
Top