How to monitor device as soon as it is powered?

I monitor my ESP32 with the platformio-ide-terminal package in Atom and the command pio device monitor --port /dev/cu.SLAB_USBtoUART --baud 115200.

I’d like to monitor my ESP32 as soon as it is powered. The problem is that I can’t open the monitor when the ESP32 as not been powered and recognized by my computer.

Any idea?

True, because, the serial port does not exist yet, unless you are using a standalone UART.

Plug in the USB, start the serial monitor, and then reset the ESP32 :wink:

How can I reset the ESP32 if I don’t have access to the board (board enclosed into a box)?

Break out the reset to a button on the case? Make it so a serial or web command (if you have the http server running) can reset the device?

Sry for necroposting, but for those looking for solution put

monitor_rts = 0
monitor_dtr = 0

into your platformio.ini file
it will reset the device once you open serial monitor, so you will see the serial output from begining