99% of the time when i recompile/flash/debug no WIFI connection... after restarting the program (while debugging in VS Code) WIFI will connect.