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