So you're a Noob? Post your questions here until you graduate! Don't be shy.

User avatar
By FranckM
#72633 Can I call UDP.begin() before waiting on the WiFi to be properly connected? Most of the examples I see wait for the WiFi to connect, but I'm wondering if it's necessary.

For example, I would like to do this instead :

in setup() :

WiFi.mode(WIFI_STA); //Station mode
WiFi.disconnect();
WiFi.begin(APName,"12348756"); //Connect to AP
UDP.begin(localPort);

And check in loop() to blink the led for the connection status, allowing my main program to start running right away.

Thank you