B4R Question esp8266 Wifi Timeout

ludogomez

Member
Licensed User
Longtime User
Hi,

I have an esp 8266 (Wemos mini) and I'm connect on wifi with wifi.connect2(ssid,pass).

Sometimes, the board can't connect to the wifi and my sub stop and wait the response.
But on my DHCP Server, I see the board and the server send a ip address.

2 questions :
- Why the board wait even the dhcp server send an address
- If the board don't connect wifi, is it possible to continue after a timeout.

Thanks
Regards
 

Erel

B4X founder
Staff member
Licensed User
Longtime User
Why the board wait even the dhcp server send an address
This is handled internally in the ESP8266 libraries so it is impossible to say.

If the board don't connect wifi, is it possible to continue after a timeout.
There is a timeout of 15 seconds. It should return False and continue.
 
Upvote 0
Top