Skip to content

Commit

Permalink
version fix (was not increased)
Browse files Browse the repository at this point in the history
increased MQTT user, pwd and topic length to 64 characters + `\0`. (The string end `\0` reduces the available size by one) #516
  • Loading branch information
lumapu committed Dec 22, 2022
1 parent c973d6e commit c71975a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions src/CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 4 additions & 4 deletions src/defines.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
//-------------------------------------
#define VERSION_MAJOR 0
#define VERSION_MINOR 5
#define VERSION_PATCH 58
#define VERSION_PATCH 59

//-------------------------------------
typedef struct {
Expand Down Expand Up @@ -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

Expand Down

0 comments on commit c71975a

Please sign in to comment.