NodeMcu not connecting to wifi

I am having trouble connecting my esp8266 to Wi-Fi. Every time after I upload the code, in the serial monitor it keeps saying that it is connecting to Wi-Fi. After 15-20 minutes it still doesn’t connect. Please respond quickly.

More information required.

Pete.

Thank you for the quick reply here is my code:

[Unformatted code removed by moderator]

when i upload he code to my node mcu board is ays offline

@cubingyoda Please edit your post, using the pencil icon at the bottom, and add triple backticks at the beginning and end of your code so that it displays correctly.
Triple backticks look like this:
```

Copy and paste these if you can’t find the correct symbol on your keyboard.

Pete.

Sorry I have the same problem with the ESP8266. It won’t go online on the web.
Compiling is going great en de serie monitor is running properly every xx seconds.
Within Arduino I don’t get any error messages.
Even with a quickstart it gets stuck at connection .
Could someone please help me because I have been stuck for days. It is an old esp8266, but that shouldn’t matter, right?
Best Regard Erik-jan

I’d suggest that you start a new “Need help…” topic and provide all of the requested information.

Pete.