mirror of
https://github.com/dalathegreat/Battery-Emulator.git
synced 2025-10-04 02:09:30 +02:00
WEB and MQTT settings are actually run-time variables
This commit is contained in:
parent
1c8802b6a7
commit
5f8eedbacb
10 changed files with 62 additions and 53 deletions
|
@ -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];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue