[GH-ISSUE #708] blank wifi credentials aren't handled correctly in connectWifi #592

Closed
opened 2026-02-28 01:26:05 +03:00 by kerem · 4 comments
Owner

Originally created by @andysc on GitHub (Aug 23, 2018).
Original GitHub issue: https://github.com/tzapu/WiFiManager/issues/708

If you erase the wifi credentials and start WiFiManager, it says

Using last saved values, should be faster

whereas it should say

No saved credentials

and go straight into config portal mode.

It looks like
if (WiFi.SSID()) {
isn't correctly evaluating an empty SSID.

Originally created by @andysc on GitHub (Aug 23, 2018). Original GitHub issue: https://github.com/tzapu/WiFiManager/issues/708 If you erase the wifi credentials and start WiFiManager, it says ``` Using last saved values, should be faster ``` whereas it should say ``` No saved credentials ``` and go straight into config portal mode. It looks like ``` if (WiFi.SSID()) {``` isn't correctly evaluating an empty SSID.
kerem 2026-02-28 01:26:05 +03:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@tablatronix commented on GitHub (Aug 29, 2018):

You didnt fill out any information

<!-- gh-comment-id:416797547 --> @tablatronix commented on GitHub (Aug 29, 2018): You didnt fill out any information
Author
Owner

@andysc commented on GitHub (Aug 29, 2018):

sorry... WM 0.14.0
ESP core 2.4.2
running on a Wemos ESP8266

line 294 of WiFiManager.cpp
erase wifi credentials using the option in Arduino IDE (Erase sketch and WiFi settings)

(I found it while we were playing with #702, but I thought I'd raise it separately :))

<!-- gh-comment-id:416861282 --> @andysc commented on GitHub (Aug 29, 2018): sorry... WM 0.14.0 ESP core 2.4.2 running on a Wemos ESP8266 line 294 of WiFiManager.cpp erase wifi credentials using the option in Arduino IDE (Erase sketch and WiFi settings) (I found it while we were playing with #702, but I thought I'd raise it separately :))
Author
Owner

@tablatronix commented on GitHub (Aug 29, 2018):

master branch ?

<!-- gh-comment-id:416994614 --> @tablatronix commented on GitHub (Aug 29, 2018): master branch ?
Author
Owner

@andysc commented on GitHub (Aug 30, 2018):

yes

<!-- gh-comment-id:417211034 --> @andysc commented on GitHub (Aug 30, 2018): yes
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/WiFiManager#592
No description provided.