mirror of
https://github.com/tzapu/WiFiManager.git
synced 2026-04-27 00:55:52 +03:00
[GH-ISSUE #1490] ESP32 cannot connect to WiFi: wm:[1] No Credentials are Saved, skipping connect #1270
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#1270
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 @Erriez on GitHub (Sep 12, 2022).
Original GitHub issue: https://github.com/tzapu/WiFiManager/issues/1490
Basic Infos
Hardware
WiFimanager Branch/Release:
masterhash7bdcfdEsp8266/Esp32: ESP32
Hardware: ESP32 Devkit v1
Core Version: 2.04
Problem description
The debug output shows sometimes
No Credentials are Saved, skipping connecton ESP32 and cannot connect to WiFi:Root cause
Reproducible on ESP32 only.
Changing hostname requires a WiFi reset as described in Espressif documentation:
https://docs.espressif.com/projects/esp-idf/en/latest/esp32/api-reference/network/esp_netif.html?highlight=hostname#_CPPv422esp_netif_set_hostnameP11esp_netif_tPKc
This if statement is incorrect:
github.com/tzapu/WiFiManager@7bdcfd501e/WiFiManager.cpp (L285)should be
if (_hostname != ""), otherwise the WiFi is always forced toWIFI_OFF.When WiFi mode is not in
WIFI_MODE_STA, the following code inWiFiManager.cppfunctionsesp_wifi_get_config()returns garbage (not null terminated string) to determine saved WiFi credentials by reading SSID. In this case the messageNo Credentials are Saved, skipping connectis printed and cannot connect to WiFi:Settings in IDE
Module: NodeMCU-32S
Additional libraries:
Sketch testcase
@Erriez commented on GitHub (Sep 12, 2022):
Pull request #1491 is a proposal for a fix with minimum changes.
@tablatronix commented on GitHub (Sep 12, 2022):
Thanks!