ESP32 can't connect to different wifi

Hi @999
welcome to the forum. Astonishing that the username "999" was still free

For explaining what the problem really is:
A pre-condition is that you post your complete sketch as a code-section.

There are hundreds of possible reasons that can cause that.

Nobody here wants to write down a 200 reasons "no-WiFi-connection" tutorial
and you don't want to read it.

Follow this short tutorial to post your sketch. Reading time 3 to 5 minutes.
Posting time : 30 seconds.

best regards Stefan