TD-er

Results 440 comments of TD-er

Try forcing the ESP to use only 802.11g and not 802.11n Some router/access points try to steer clients to another band (literally called band steering) by shortly disconnecting the client....

Try forcing the ESP to only use 802.11g Make sure the router/access point allows clients to connect in "g" mode and thus not set to be "N-only".

There are other tricks you can try: - Add `delay(1000);` right after a call to `WiFi.begin()` - Enable `WiFi.setAutoConnect(...)` and/or `WiFi.setAutoReconnect(...)` - Add `delay(100);` right after each WiFi command you...

I've noticed that whenever you make a call to a function in the WiFi class which actually does something to the hardware, it may not be done yet when the...

It is like you're doing this: ```c++ WiFi.begin("HumptyDumpty", "Not_A_Real_SSID_for_me_at_least"); Serial.print("Connecting"); do { delay(500); Serial.print("."); } while (WiFi.status() != WL_CONNECTED); ``` With the exception that `Serial.print()` may also cause different behavior....

> If after that, a **`disconnect()` before `begin()` makes any difference** whatsoever, that would certainly be a **bug** in itself. Well there is one thing you can be sure of...

Yep, adding a delay will make things a lot faster with WiFi :)

> > Yep, adding a delay will make things a lot faster with WiFi :) > > How much delay do you use? A delay of 3000ms after WiFi.begin() is...

I have seen some boards which have really badly tuned WiFi antennas. When using a really old Arduino core for ESP8266 (e.g. 2.3.x or older) those boards may sometimes work...

https://github.com/esp8266/Arduino/blob/1a13ab95fb520e294ebffa4ece6b3a1466762604/libraries/ESP8266WiFi/src/ESP8266WiFiSTA.cpp#L499-L513 Not 100% sure if it is very similar to adding a `delay(250)` call. `delay()` also does handle background calls like WiFi events. Not sure whether this polledtimeout does the...