dewenni / ESP_Buderus_KM271

Control your Buderus Logamatic 2107 or HS-2105 with MQTT or Home Assistant
MIT License
54 stars 10 forks source link

Unable to connect to wifi #94

Closed Kev0123 closed 2 months ago

Kev0123 commented 2 months ago

I am unable to connect to wifi, its a 40 digit password with serveral special characters. These are the ones contained: {($<~%}_! at least one of them is causing an issue with connection.

dewenni commented 2 months ago

Hi, how familiar are you with ESP and Arduino and can you confirm that this password generally works on an ESP with Arduino? So the problem only exists with this project and it works in other ESP projects with Arduino? I'll have to test it myself. My WiFi password is not that complex. Maybe it is a general issue with the WiFi Class of Arduino.

Kev0123 commented 2 months ago

The issue is not affecting e.g. the WLED project.

dewenni commented 2 months ago

ok, I will test it.

dewenni commented 2 months ago

Id did some tests and found the reason for that. It is not related to WiFi function itself. It is a problem of handling the user input from my side. I use snprintf to copy the user input from the webUI to the config structure. And in printf function the % is a special formatting character. If you have a % in the string, it will be removed.

It's a bit unlucky how I currently use the function. Will be fixed with the next release. Thanks for reporting.

dewenni commented 2 months ago

fixed with v4.0.4