I log WIFI and restart events in my project. I always get the same reset reason when initially starting the sketch or plugging in power. Is this to be expected? Only occurs in the two cases; in normal operation.
This sketch demonstrates the reset reason. Plugging in power or pressing reset produces “Vbat power on reset.” When watchdog event occurs; result is “Software reset CPU.”
Yes. You’re expected to get the same reason when pressing the RST button, starting the sketch, or plugging power.
Thank you Sara for confirming.
Here is sample of what I have so far:
I was going to add logging the start of the server; however, it seems to only get repeated with a reset reason Logging server start looks useless to me now.
Developed a way to separate ESP32 Start events and Brownout events:
Logging WIFIClientEvents: ESP Start, Brownout, Watchdog, WIFI Connect and WIFI Disconnect