Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

force wifi scanning #45

Closed
wants to merge 1 commit into from
Closed

Conversation

AxelHamburch
Copy link

The user Buger Dread has given good advice in the MakerBits group regarding the instability of the Wifi connection of an ESP32.

https://t.me/makerbits/20423

By default, the ESP32 scans for access points numerically. The first one is taken. However, the first one does not have to be good.

There is an extended command WiFi.setScanMethod for the ESP32 which forces a scan of all APs before an AP is selected.

https://github.com/espressif/arduino-esp32/blob/master/libraries/WiFi/src/WiFiSTA.cpp#L230

This must be done before the actual call WiFi.begin.

I tested the code change on a bitcoinSwitch and it worked.

@AxelHamburch AxelHamburch deleted the wifi_bug branch January 20, 2025 13:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant