From 12a096c545bf5b1db4a79ad7eabac68d34c54842 Mon Sep 17 00:00:00 2001 From: Hoi Dmytro Date: Tue, 5 Nov 2024 15:57:38 +0200 Subject: [PATCH] Update ha_mqttpassword length in JaamFirmware.cpp --- firmware/src/JaamFirmware.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/firmware/src/JaamFirmware.cpp b/firmware/src/JaamFirmware.cpp index f0961cbb..5cbcb7a0 100644 --- a/firmware/src/JaamFirmware.cpp +++ b/firmware/src/JaamFirmware.cpp @@ -61,7 +61,7 @@ struct Settings { int lightpin = 32; int ha_mqttport = 1883; char ha_mqttuser[31] = ""; - char ha_mqttpassword[51] = ""; + char ha_mqttpassword[65] = ""; char ha_brokeraddress[31] = ""; int current_brightness = 50; int brightness = 50; @@ -2027,7 +2027,7 @@ void handleDev(AsyncWebServerRequest* request) { addInputText(response, "ha_brokeraddress", "Адреса mqtt Home Assistant", "text", settings.ha_brokeraddress, 30); addInputText(response, "ha_mqttport", "Порт mqtt Home Assistant", "number", String(settings.ha_mqttport).c_str()); addInputText(response, "ha_mqttuser", "Користувач mqtt Home Assistant", "text", settings.ha_mqttuser, 30); - addInputText(response, "ha_mqttpassword", "Пароль mqtt Home Assistant", "text", settings.ha_mqttpassword, 50); + addInputText(response, "ha_mqttpassword", "Пароль mqtt Home Assistant", "text", settings.ha_mqttpassword, 64); } addInputText(response, "ntphost", "Адреса сервера NTP", "text", settings.ntphost, 30); addInputText(response, "serverhost", "Адреса сервера даних", "text", settings.serverhost, 30);