ESP32-S3 read HaerdwareSerial immediately after woke up
Posted: Thu Jan 11, 2024 2:08 pm
Good morning,
I have a problem with reading hardware serial 1 on ESP32-S3 after woke up by deep sleep: basically, I send the LoRa modem E220 to sleep and then the esp32 to deep sleep.
When a message arrives, the modem receives it, it throw LOW the aux pin that wakes up the ESP32 and with the latter I have to read the Hardware 1 serial.
The problem is that when it wakes up and I create the object, it doesn't find anything in the serial because in my opinion when it creates the serial object, it clears the buffer.
I'm asking for advice if anyone knows anything.
I have a problem with reading hardware serial 1 on ESP32-S3 after woke up by deep sleep: basically, I send the LoRa modem E220 to sleep and then the esp32 to deep sleep.
When a message arrives, the modem receives it, it throw LOW the aux pin that wakes up the ESP32 and with the latter I have to read the Hardware 1 serial.
The problem is that when it wakes up and I create the object, it doesn't find anything in the serial because in my opinion when it creates the serial object, it clears the buffer.
I'm asking for advice if anyone knows anything.