[GH-ISSUE #1360] Troubles if SSID includes "-" #1167

Closed
opened 2026-02-28 01:28:49 +03:00 by kerem · 15 comments
Owner

Originally created by @LennartVin on GitHub (Feb 15, 2022).
Original GitHub issue: https://github.com/tzapu/WiFiManager/issues/1360

I have set up the simple example. However, when I click on a network where the SSID includes a "-" and try to connect to it, I receive the error stating "AP not found".
I can connect to the SSID when I enter the SSID manually. This means that by clicking on the SSID on the Connection site the SSID is not correctly transferred to the textbox

Originally created by @LennartVin on GitHub (Feb 15, 2022). Original GitHub issue: https://github.com/tzapu/WiFiManager/issues/1360 I have set up the simple example. However, when I click on a network where the SSID includes a "-" and try to connect to it, I receive the error stating "AP not found". I can connect to the SSID when I enter the SSID manually. This means that by clicking on the SSID on the Connection site the SSID is not correctly transferred to the textbox
kerem 2026-02-28 01:28:49 +03:00
Author
Owner

@tablatronix commented on GitHub (Feb 15, 2022):

What version ?
Did you try the newest beta?

Or did this just start?

<!-- gh-comment-id:1040691557 --> @tablatronix commented on GitHub (Feb 15, 2022): What version ? Did you try the newest beta? Or did this just start?
Author
Owner

@starfy84 commented on GitHub (Feb 15, 2022):

I have this issue too. More specifically on the ESP32, newest beta (haven't tested with other versions yet).

<!-- gh-comment-id:1040838687 --> @starfy84 commented on GitHub (Feb 15, 2022): I have this issue too. More specifically on the ESP32, newest beta (haven't tested with other versions yet).
Author
Owner

@tablatronix commented on GitHub (Feb 15, 2022):

ok maybe I broke this
#1361

<!-- gh-comment-id:1040891455 --> @tablatronix commented on GitHub (Feb 15, 2022): ok maybe I broke this #1361
Author
Owner

@tablatronix commented on GitHub (Feb 15, 2022):

hmm, ahh I see, works on reboot, but on save it says not found, ok

<!-- gh-comment-id:1040907895 --> @tablatronix commented on GitHub (Feb 15, 2022): hmm, ahh I see, works on reboot, but on save it says not found, ok
Author
Owner

@tablatronix commented on GitHub (Feb 16, 2022):

this makes no sense!

Upload

*wm:[3] Method: POST
*wm:[3] [ARG] param s test–dashes
*wm:[3] [ARG] param p 12345678
*wm:[3] Sent wifi save page 
*wm:[2] processing save 

It cannot be a coincidence, but I still cannot figure it out

<!-- gh-comment-id:1040979081 --> @tablatronix commented on GitHub (Feb 16, 2022): this makes no sense! Upload ``` *wm:[3] Method: POST *wm:[3] [ARG] param s test–dashes *wm:[3] [ARG] param p 12345678 *wm:[3] Sent wifi save page *wm:[2] processing save ``` It cannot be a coincidence, but I still cannot figure it out
Author
Owner

@tablatronix commented on GitHub (Feb 16, 2022):

I reverted that, I added it because IDF was having issues, and now this is.. string looks clean, Ill need to check the length of the c_str and termination maybe.. and make sure there is refs here

<!-- gh-comment-id:1041016904 --> @tablatronix commented on GitHub (Feb 16, 2022): I reverted that, I added it because IDF was having issues, and now this is.. string looks clean, Ill need to check the length of the c_str and termination maybe.. and make sure there is refs here
Author
Owner

@tablatronix commented on GitHub (Feb 16, 2022):

yup there is 2 extra characters in there.. hmm

<!-- gh-comment-id:1041033759 --> @tablatronix commented on GitHub (Feb 16, 2022): yup there is 2 extra characters in there.. hmm
Author
Owner

@tablatronix commented on GitHub (Feb 16, 2022):

I reverted and pushed another beta, ugh sorry about that, ill test elsewhere

<!-- gh-comment-id:1041045864 --> @tablatronix commented on GitHub (Feb 16, 2022): I reverted and pushed another beta, ugh sorry about that, ill test elsewhere
Author
Owner

@tablatronix commented on GitHub (Feb 16, 2022):

Strangely it doesn't seem to be the other entities, & works fine

<!-- gh-comment-id:1041051482 --> @tablatronix commented on GitHub (Feb 16, 2022): Strangely it doesn't seem to be the other entities, & works fine
Author
Owner

@JC-Electronics-Design commented on GitHub (Feb 17, 2022):

Just reading on this. The issue I had with not connecting to WiFi using PlatformIO (https://github.com/tzapu/WiFiManager/issues/1358) is probably the same issue.
Since reading this I have pulled the new beta into PlatformIO and everything works again.

<!-- gh-comment-id:1043401859 --> @JC-Electronics-Design commented on GitHub (Feb 17, 2022): Just reading on this. The issue I had with not connecting to WiFi using PlatformIO (https://github.com/tzapu/WiFiManager/issues/1358) is probably the same issue. Since reading this I have pulled the new beta into PlatformIO and everything works again.
Author
Owner

@JohnvanderPol2 commented on GitHub (Mar 15, 2022):

Same issue Dash in SSID is converted to e28093 #1372
there is something that converts the - into a multi byte character, this prevents the SSID to be found
#1372 contains some more analysis
I will try the current beta if it fixes it.

<!-- gh-comment-id:1067750167 --> @JohnvanderPol2 commented on GitHub (Mar 15, 2022): Same issue Dash in SSID is converted to e28093 #1372 there is something that converts the - into a multi byte character, this prevents the SSID to be found #1372 contains some more analysis I will try the current beta if it fixes it.
Author
Owner

@tablatronix commented on GitHub (Mar 15, 2022):

hmm #1361

<!-- gh-comment-id:1067999932 --> @tablatronix commented on GitHub (Mar 15, 2022): hmm #1361
Author
Owner

@JohnvanderPol2 commented on GitHub (Mar 16, 2022):

It still worked in 2.0.5-Beta
In 2.0.8 and 2.0.9 it failed.

I did not check yet with 2.0.6 and 2.0.7.
If I do, I will try to update the info.
For now I have at least a workaround.

<!-- gh-comment-id:1068661548 --> @JohnvanderPol2 commented on GitHub (Mar 16, 2022): It still worked in 2.0.5-Beta In 2.0.8 and 2.0.9 it failed. I did not check yet with 2.0.6 and 2.0.7. If I do, I will try to update the info. For now I have at least a workaround.
Author
Owner

@tablatronix commented on GitHub (Mar 16, 2022):

I think this was still working but the character was ignored, I will refix this properly now, I will test it again maybe it depends on esp libs

<!-- gh-comment-id:1068672883 --> @tablatronix commented on GitHub (Mar 16, 2022): I think this was still working but the character was ignored, I will refix this properly now, I will test it again maybe it depends on esp libs
Author
Owner

@tablatronix commented on GitHub (Apr 7, 2022):

This should be fixed

<!-- gh-comment-id:1091773361 --> @tablatronix commented on GitHub (Apr 7, 2022): This should be fixed
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#1167
No description provided.