Wifi only works when Serial Monitor is active

I use an ESP32 dev board from AZ Delivery.
I have troubles getting the wifi to work. The Wifi only works when the dev board is connected via USB and the serial monitor on the laptop is active (I’m using PlatformIO in VScode). When I press the reset button on the dev board, the board resets and the wifi works and I can connect with the WLED app. (then 2 strange characters appear in the serial console.)
When I use the exact same hardware (so I don’t change anything compared to the above setup: same cables, same laptop) and do not turn on the serial monitor, I can’t get the wifi up. (not even after pushing the reset button.)
the wifi only works when I press reset on the dev board and serial monitor is active.
Please help.

As off other posts if the DEV is connected to the PROG its belived to have this issue
the WLED system is soposed to run on its own Boot

so yes you are in this Chain this is a normal behav
YOUR User Mod Compilation needs a Wled internal reboot to make it run Standalone
Thats what its made for and its soposed to run !!

I don’t fully understand your feedback.
I just reinstalled WLED (via the web installer) and the problem remains.
Can you point me to some documentation or can you elaborate a bit on what you mean?

@TeeFiX42
Testing
get the Board of the PC use a standard USB powersuply 1-5V like a Tablet charger
Then Power the Board look in your Smartphone if there is a WLED AP
if so connect to it via browser or via WLED APP
if not press RESET on the board and look again
it may only work proper after the fist wifi connection as some report on that issue

I signed up to this forum, purely to add onto this thread.

I have a ESP32-32D N4, which I believe is the esp32-d0wd-v3 chip.

I have spent litterally the last 6 hours, installing, reinstalling, installing ESP web tools, installing WLED, chaning Wi-Fi settings (2.4Ghz, 20Mhz band width, IoT specifications, even removing PSK all together), the list goes on, for the exact same reason: Wi-Fi just won’t re-connect. I have tried just about every single suggested fix, until I landed on this one.

Like TeeFiX42, I have come across exactly the same issue. The Wi-Fi will only enable on the board when a serial/console connection is active (for me it is the WLED or ESP Web Tools web based console viewer) AND the physical reset button is pressed.

In the ESP Web Tools console, there is a read out stating auth error for every attempt until, that magic reset button is pressed and then it works.

I have attempted the suggestion by Magig_Wled, using both a USB cable to the USB port and powering direct from the 3v3/GND, still with no success. Setting the Wi-Fi settings via the web inteface serves no benefit, as the Wi-Fi process simply does not start, until the serial/console connection is actived and the reset button is pressed.

Hopefully, those who are smarter than I when it comes to these boards, knows how to resolve/bypass this issue.

!!EDIT!!
Persistance pays off! I believe I have a solution.

I have changed to powering the ESP32 via the VN/GND on the opposite side of the board. According to the pinout on the sellers AliExpress page, this is the “3.6V - 18V” connector. By using this, instead of the 3v3/GND or USB-C connector to power the board, it is connecting everytime. I am going to assume that when the unit is powered by the USB-C connector, it is expecting a console connection and therefore behaving differently.

Hopfully this stays as a persistant soltuion and helps others down the line.