madmartin / Jarolift_MQTT

Controlling Jarolift TDEF 433MHZ radio shutters via ESP8266 and CC1101 Transceiver Module in asynchronous mode
GNU General Public License v3.0
67 stars 28 forks source link

Wifi-Passwort do not accept characters like ";" #47

Open AIXruth opened 2 years ago

AIXruth commented 2 years ago

Hi,

thanks for your work!

My WIFI_STA cannot connect, as my wifi password is wrong. I debugged the function ConfigureWifi() in global.h (see below) and found out, that my wifi password ends before the containing character ";". E.g. a password like 123;456, will be truncated 123.

Unfortunately I haven't found out, where it has been truncated.

void ConfigureWifi() in global.h:

...
  WiFi.mode(WIFI_STA);
+  String S1=config.password.c_str();
+ WriteLog("DEBUG:" + S1,true);
  WiFi.begin (config.ssid.c_str(), config.password.c_str());

Any clue, how to fix the small issue?

cheers AIXruth

AIXruth commented 2 years ago

Fixed with #48