martin-ger / esp_wifi_repeater

A full functional WiFi Repeater (correctly: a WiFi NAT Router)
MIT License
4.8k stars 905 forks source link

SSID pass with special characters do not work #453

Closed rb26 closed 3 years ago

rb26 commented 3 years ago

Bonjour It appears that passwords with special characters do not work. I tested the wifi repeater with an esp8266-01. Everything went well initially, except that the module cannot connect to the router. Message obtained on the console: 16:13:52.907 -> disconnect from ssid RBSSID, reason 15 16:13:53.904 -> reconnect 16:13:53.904 -> state: 2 -> 0 (0) 16:13:54.036 -> scandone 16:13:54.036 -> state: 0 -> 2 (b0) 16:13:54.036 -> state: 2 -> 3 (0) 16:13:54.036 -> state: 3 -> 5 (10) 16:13:54.036 -> add 0 16:13:54.036 -> aid 8 16:13:54.036 -> cnt 16:14:00.275 -> state: 5 -> 2 (fc0) 16:14:00.275 -> rm 0 16:14:00.275 -> disconnect from ssid RBSSID, reason 15

In addition, I locked the config. without entering a new password and can no longer modify the config. because the default password is that of STA and it does not work.

I also tried to erase the program and the EPROM, and reload it, the hang is still present. Is there a trick to completely reinit the ESP or do you have to put it in the trash and take a new one to test again? Merci, cordialement Richard

rb26 commented 3 years ago

Nota: in #435, the kristian answer work fine pour resetting the esp, I will now tried a new SSID password without special chars

rb26 commented 3 years ago

After testing, I confirm that the problem comes from the presence of special characters in the password. The browser makes a urlencode for the GET protocol which modifies the transmitted string. Personally I rather use POST to avoid this problem. Cordially Richard

rb26 commented 3 years ago

Bonjour there was a '%' character in the password, i escaped it '\%' and now it works, slowly (maybe on esp-01s) but it works cordialement RB