Search found 2 matches
- Sat Mar 25, 2023 6:12 pm
- Forum: ESP32 Arduino
- Topic: waiting for serial port to open; Arduino IDE
- Replies: 4
- Views: 3495
Re: waiting for serial port to open; Arduino IDE
I need to output to the serial monitor first before receiving input. I have a while(serial.available) in the code which works fine, but the Serial.println prior to that is dropped, because the connection isn't open at that point.
- Thu Mar 23, 2023 6:52 am
- Forum: ESP32 Arduino
- Topic: waiting for serial port to open; Arduino IDE
- Replies: 4
- Views: 3495
waiting for serial port to open; Arduino IDE
Is there a way for the ESP32 (S3) to wait until a serial port/monitor has been started? I’m using the Arduino IDE. On non-ESP32 boards, I’ve used something like this: while (!Serial) { ; // wait for serial port to connect. Needed for native USB port only } Serial.println("***************************...