mirror of
https://github.com/tzapu/WiFiManager.git
synced 2026-04-27 00:55:52 +03:00
[GH-ISSUE #1640] ESP32 - Autoconnect fails #1395
Labels
No labels
📶 WiFi
🕸️ HTTP
Branch
DEV Help Wanted
Discussion
Documentation
ESP32
Example
Good First Issue
Hotfix
In Progress
Incomplete
Needs Feeback
Priority
QA
Question
Task
Upstream/Dependancy
bug
duplicate
enhancement
invalid
pull-request
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/WiFiManager#1395
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @lisander-lopez on GitHub (Aug 3, 2023).
Original GitHub issue: https://github.com/tzapu/WiFiManager/issues/1640
Basic Infos
Hardware
WiFimanager Branch/Release: Master (Added git url to platform.ini) (WiFiManager @ 2.0.16-rc.2+sha.3a303ee)
Esp8266/Esp32: ESP32
Hardware: esp-wroom-32
Core Version: framework-arduinoespressif32 @ 3.20009.0 (2.0.9)
Description
When connecting to my Router I get a "0x3007" error, according to the documentation it is
[ESP_ERR_WIFI_CONN](https://docs.espressif.com/projects/esp-idf/en/latest/esp32/api-reference/network/esp_wifi.html#c.ESP_ERR_WIFI_CONN) (0x3007): WiFi internal control block of station or soft-AP errorI've looked ALL OVER online (issues, ESP forum, et) I've tried stuff like:
WiFi.mode(WIFI_STA);beforewm.autoConnect()wm.setCleanConnect(true);before autoConnectsetConnectTimeoutsetTimeoutMy router is a Verizon CR1000B if it matters. It has an "iot" network feature that just locks an AP in 2.4ghz
I would connect before, but I would have non blocking code that just tried to connect over and over and eventually it would work (sometimes in 5 mins sometimes in hours)
Any help would be appreciated thanks :)
Settings in IDE
Module: ESP32
Additional libraries: None
Sketch
Debug Messages
@tablatronix commented on GitHub (Aug 3, 2023):
Try increasing setConnectionTimeout, i have never seen that error code before, maybe turn up ESP debug.
I bet there is some kind of error or bug in esp lib not being caught here, since there is not much info
@lisander-lopez commented on GitHub (Aug 4, 2023):
Thank you for replying! I've been pulling my hair on this for a while.
I've changed the code to this (and turned on ESP debug)
I put the output on a pastebin since it is too large/clunky to fit here https://pastebin.com/f0XtxChX
Im getting things like
HANDSHAKE_TIMEOUTAUTH_EXPIREASSOC_EXPIREyou can also see that I have retries of 2 but it increases... super weird 😂
@chriskinal commented on GitHub (Aug 4, 2023):
Try taking the space out of the Wifi SSID. Maybe The-Cloud or The_Cloud versus "The Cloud". Try all lowercase and no spaces or other special characters. While spaces are technically allowed within the SSID, some implementations may not handle them well. Spaces are not permitted as the first or last character in an SSID.
Perhaps it is something with the Verizon router and/or the "IOT network" feature. Have you tried a different 2.4GHz network or router? Can you add the MAC address of the ESP32 into the "allowed" list on the router? If using DHCP, can you set a reservation for the ESP32?
@lisander-lopez commented on GitHub (Aug 4, 2023):
Thank you for contributing to this issue and trying to help.
I changed my SSID to
the-cloudand it worked the first time, but subsequent reboots the same error persisted.I do have an option to create a "guest network" I tried that and no luck :( . I even temporarily shut off all bands expect for 2.4ghz on my main network and same issue. When the ESP32 first connected to my router it was "saved" so it knew its mac address etc. which I can then disallow if I wanted to (so by default its allow). I am using DHCP but I can give a static IP based on hostname and mac address, That didn't seem to fix my problem either.
@chriskinal commented on GitHub (Aug 4, 2023):
Try turning off encryption to see if it is a crypto negotiation problem. When you say "reboot", is that by a button on the dev board or disconnecting power? I have some boards that will connect once but when I push the button on the board it won't reconnect. When I disconnect and reconnect power it works. It behaves like this with my Linksys wifi. When I use the mobile hotspot feature on Windows 10 to create an AP it connects fine by pushing the button or power cycling.
@tablatronix commented on GitHub (Aug 5, 2023):
This is a huge issue with pmf and deauth protection I have an open issue with esp idf it has been a while since I tested this but not sure its fixed yet
@lisander-lopez commented on GitHub (Aug 5, 2023):
Ok breaks to say it but it worked on an open network! I'm partially happy since I prefer to have a password on my AP.
@lisander-lopez commented on GitHub (Aug 5, 2023):
This one? https://github.com/espressif/esp-idf/issues/8192 Seems like they closed it, I am using the latest version too :/
@tablatronix commented on GitHub (Aug 5, 2023):
Can you confirm your IDF in code?
*DLOG: [1] ESP-IDF version: 4.4.5.230614
@lisander-lopez commented on GitHub (Aug 5, 2023):
I used
and got
ESP-IDF version is: v4.4.4So its not lastest, but it should include the "fix"
@lisander-lopez commented on GitHub (Aug 8, 2023):
So I can confirm that everything works smoothly when my WiFi is left insecure, but not working with WPA2