mqtt url length increased to 63 characters

This commit is contained in:
Bogdan Pilyugin 2023-02-17 11:38:23 +02:00
parent 8da969e5df
commit 47fd71f5e8
3 changed files with 4 additions and 4 deletions

View File

@ -82,7 +82,7 @@
#if CONFIG_WEBGUIAPP_MQTT_ENABLE
struct
{
char ServerAddr[32];
char ServerAddr[64];
uint16_t ServerPort;
char SystemName[32];
char GroupName[32];

View File

@ -279,7 +279,7 @@ static HTTP_IO_RESULT HTTPPostAdaptersSettings(httpd_req_t *req, char *PostData)
static HTTP_IO_RESULT HTTPPostServicesSettings(httpd_req_t *req, char *PostData)
{
char tmp[33];
char tmp[64];
#if CONFIG_WEBGUIAPP_MQTT_ENABLE
bool TempIsMQTT1Enabled = false;
#if CONFIG_WEBGUIAPP_MQTT_CLIENTS_NUM == 2

View File

@ -242,8 +242,8 @@ static void start_mqtt()
{
esp_mqtt_client_config_t mqtt_cfg = { 0 };
char url[40];
char tmp[40];
char url[72];
char tmp[72];
for (int i = 0; i < CONFIG_WEBGUIAPP_MQTT_CLIENTS_NUM; ++i)
{