Arm Mbed OS support forum

Is a bug in the mbed::Stream.readable()?

Hi,

In the mbed-os 6.12.
Why the mbed::Stream.readable() is waiting for a byte ?

Can the Stream.readable() be the same as the BufferedSerial.readable() to immediate return?

Best Regards,
Jason

Hello Jason,

Why the mbed::Stream.readable() is waiting for a byte ?

Why do you think the readable method inherited from the FileHandle is waiting for a byte?