WEB and MQTT settings are actually run-time variables

This commit is contained in:
Jaakko Haakana 2025-07-05 10:21:15 +03:00
parent 1c8802b6a7
commit 5f8eedbacb
10 changed files with 62 additions and 53 deletions

View file

@ -13,6 +13,14 @@
#include "../utils/timer.h"
#include "mqtt_client.h"
#ifdef MQTT
const bool mqtt_enabled_default = true;
#else
const bool mqtt_enabled_default = false;
#endif
bool mqtt_enabled = mqtt_enabled_default;
esp_mqtt_client_config_t mqtt_cfg;
esp_mqtt_client_handle_t client;
char mqtt_msg[MQTT_MSG_BUFFER_SIZE];