Search found 1 match
- Fri Nov 22, 2024 7:30 am
- Forum: ESP32 Arduino
- Topic: Serial2 read error but available>0
- Replies: 2
- Views: 3469
Re: Serial2 read error but available>0
Hello, I am facing the same issue with a WT32-SC01 Plus board (ESP32s3) . Serial2.available is always >0 but read() generates an error. The issue is that the read() function is designed in such a way that when it returns false (-1) you cannot distinguish that from a legitimate 0xFF : int HardwareSer...