Tell me what you want, What you really, really want.

Moderator: Mmiscool

User avatar
By bugs
#52999 With Arduino I can wait util the ESP has connected to my network with something like

if(wifiConnected) {
digitalWrite(ledpin, LOW); //turn led on
}
else {...}

Is there a way to return a success/failure value from BASIC wifi.connect()?
User avatar
By Mmiscool
#53022 Yes. Wifi.connect() and wifi.ap() functions both return a value for success or fail.