From c71975a16498953ca7e3aae89055750774c704ea Mon Sep 17 00:00:00 2001 From: lumapu Date: Thu, 22 Dec 2022 12:20:01 +0100 Subject: [PATCH] version fix (was not increased) increased MQTT user, pwd and topic length to 64 characters + `\0`. (The string end `\0` reduces the available size by one) #516 --- src/CHANGES.md | 1 + src/defines.h | 8 ++++---- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/CHANGES.md b/src/CHANGES.md index e121df440..671df419f 100644 --- a/src/CHANGES.md +++ b/src/CHANGES.md @@ -3,6 +3,7 @@ ## 0.5.59 * fix night communication enable * improved different WiFi connection scenarios (STA WiFi not found, reconnect #509, redirect for AP to configuration) +* increased MQTT user, pwd and topic length to 64 characters + `\0`. (The string end `\0` reduces the available size by one) #516 ## 0.5.58 * improved stability diff --git a/src/defines.h b/src/defines.h index 28c71fd1d..14495f21e 100644 --- a/src/defines.h +++ b/src/defines.h @@ -13,7 +13,7 @@ //------------------------------------- #define VERSION_MAJOR 0 #define VERSION_MINOR 5 -#define VERSION_PATCH 58 +#define VERSION_PATCH 59 //------------------------------------- typedef struct { @@ -86,9 +86,9 @@ union serial_u { #define NTP_ADDR_LEN 32 // DNS Name #define MQTT_ADDR_LEN 64 // DNS Name -#define MQTT_USER_LEN 64 -#define MQTT_PWD_LEN 64 -#define MQTT_TOPIC_LEN 64 +#define MQTT_USER_LEN 65 // there is another byte necessary for \0 +#define MQTT_PWD_LEN 65 +#define MQTT_TOPIC_LEN 65 #define MQTT_MAX_PACKET_SIZE 384