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

ESP32 WiFi won't connect #33

Closed
GeoffreyMills opened this issue Jul 17, 2021 · 1 comment
Closed

ESP32 WiFi won't connect #33

GeoffreyMills opened this issue Jul 17, 2021 · 1 comment

Comments

@GeoffreyMills
Copy link

ESP32 - Tried EnigmaIOT Gateway and EnigmaIOTMQTT. Keyed WiFI data into WiFiManager (192.168.4.1) OK but ESP32 (Sparkfun Thing, WeMos Lolin32) won't connect!. So I ran up the basic examples of ESPAsyncWiFiManager for both the alanswx and tzapu releases in Github and they both worked. The "alanswx" release was updated 2 days ago with WiFi disconnect changes.

ESPAsyncWiFiManager.cpp -> int AsyncWiFiManager::connectWifi(String ssid, String pass)
L580, L595 Changed "WiFi.disconnect(false); -> "WiFi.enableSTA(false)" and it started working.
Cannot find the source of "WiFi.enableSTA(false)" , was looking in WiFiManager issues for tzapu and alanswx.
Tested instead with "WiFi.disconnect(true,true)" - working. Reference: tzapu/WiFiManager#591
FYI Using latest ESPAyncWiFiManager v0.25, ESP 1.0.6

espressif/arduino-esp32#4980 Of concern but could not see where global timeout is stored?
espressif/arduino-esp32#3522 disconnect(true) seems to
permanently close WiFi #3522 (what I was seeing)

FWIW Found the HOWTO.md notes late in the day, specifically ..ESPAsyncWiFiManager -- https://github.com/gmag11/ESPAsyncWiFiManager forked... But the gmag11 version did not change the issue with not connecting, still needed changes above. Found the ESPAsyncWiFiManager confusing because "alanswx" source is very much ESP8266 only now

Also hit the Issue #18. looks like setting DEBUG to WARN and speed to 115200 has solved that.
Got MQTT messages from the node showing in Mosquitto now :)

Geoffrey

@GeoffreyMills
Copy link
Author

I downloaded this code on 9/7 and had WiFi issues as described above (plus ESP32 will not send error 12393 ) but you posted a fix for this in April (ESP-NOW)
I just compared the src code on Github today versus what I have and my "espnow_hal.cpp" is old: I am not using the latest code. Well, I wanted to learn stuff and I did locate the source of the problem... Issue #33 fixed in April, not a bug

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

No branches or pull requests

1 participant