From 51b9653472c1e3ff076e456cfc470266fe90ecd4 Mon Sep 17 00:00:00 2001 From: Bogdan Pilyugin Date: Mon, 17 Apr 2023 15:46:51 +0200 Subject: [PATCH] fixed main button gpios range; mqtt timeout reconnect decreased to 20 sec --- Kconfig | 2 +- src/MQTT.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Kconfig b/Kconfig index 40fe05c..f6e3e4f 100644 --- a/Kconfig +++ b/Kconfig @@ -37,7 +37,7 @@ menu "WebGUIApp" config MAIN_FUNCTIONAL_BUTTON_GPIO int "Main functional button GPIO" - range -1 34 + range -1 39 default 15 help Set the GPIO number for main system button. Mainly needed for settings default reset. If not diff --git a/src/MQTT.c b/src/MQTT.c index 9f7b647..ee57217 100644 --- a/src/MQTT.c +++ b/src/MQTT.c @@ -29,7 +29,7 @@ #define MQTT_MESSAGE_BUFER_LENTH 5 //size of mqtt queue #define MQTT_RECONNECT_CHANGE_ADAPTER 3 -#define MQTT_RECONNECT_TIMEOUT 30 +#define MQTT_RECONNECT_TIMEOUT 20 #if CONFIG_WEBGUIAPP_MQTT_ENABLE