Edzelf / ESP32-Radio

Internet radio based on ESP32, VS1053 and a TFT screen.
GNU General Public License v3.0
965 stars 227 forks source link

no Wifi access after saving config #402

Open bl-ack-bi-rd opened 3 years ago

bl-ack-bi-rd commented 3 years ago

Description

If i save my config in the browser, it wont recognize my wifi anymore and creates an AP. The work-around is to type my password in the config every time, then it has no problem connecting.

I tested this with two different ESP32 Boards. In the documentation it states, that the password is being preserved if not changed in the config. Is this a bug?

Any suggestions?

Edzelf commented 3 years ago

The password in the config is used.

bl-ack-bi-rd commented 3 years ago

my guess is that the "****" is being saved as a password, is there any way to check?

Edzelf commented 3 years ago

Password is saved if it differs from "***". So you have to enter the real password just once and save the config. You may add an extra dbgprint call to check it.

bl-ack-bi-rd commented 3 years ago

how would i implement the dbgprint call?

Edzelf commented 3 years ago

There are hundred examples in the source code.

Edzelf commented 3 years ago

If you only have one wifi network configured, you can edit line 2127. Fill inn ssid and password.

rameister commented 3 years ago

Please give a short view of this code of this line, is it possible? Thx.