blynkkk / blynk-library

Blynk library for IoT boards. Works with Arduino, ESP32, ESP8266, Raspberry Pi, Particle, ARM Mbed, etc.
https://blynk.io
MIT License
3.83k stars 1.38k forks source link

Template_ESP8266/ConfigStore.h: WiFi password length limited to 34 #427

Closed tarjes closed 5 years ago

tarjes commented 6 years ago

In blynk-library/examples/Export_Demo/Template_ESP8266/ConfigStore.h:

Is there any reason why char wifiPass[34]; is only 34 long? PSKs (wifi-passwords) should normally be 8 to 63 printable ASCII characters long, and WiFi.begin(ssid, pass) from the ESP8266 Arduino library supports up to 63 characters.

Blynk library version: 0.5.1 IDE: Arduino IDE version: 1.8.5 Board type: NodeMcu

Scenario, steps to reproduce

Use dynamic provisioning to connect to WiFi network with password longer than 34 ascii-signs.

Expected Result

Connection successful.

Actual Result

Connection times out after 30 seconds. password-length: 36

[113876] SWITCH_TO_STA => CONNECTING_NET
[113878] Connecting to WiFi: Plaato_IoT
[144161] CONNECTING_NET => ERROR