Début implémentation buffering des messages MQTT lors d'un blackout internet

This commit is contained in:
2023-06-28 13:59:58 -04:00
parent 7bbf2cb812
commit 3a44111079
6 changed files with 197 additions and 10 deletions
+2
View File
@@ -5,6 +5,8 @@
#define GENERAL_MESSAGES_MAX_LOG_LINES 5000 //The number of lines of general status log we keep in the general status window (avoids fucking up because you know.... RAM)
#define MQTT_CLIENT_RECONNECT_TIMEOUT 5000 //Time in ms between reconnect attemps to MQTT broker when connection is lost
#define MQTT_CLIENT_MSG_QUEUE_FLUSH_TIMEOUT 500 //The delay in ms between the TX messages when flushing the msg queue after a server reconnection
#define MQTT_CLIENT_MSG_QUEUE_SIZE 1000 //The maximum number of messages to be queued. Older messages are lost when adding a new one in a full queue
//#define USE_TOPIC_PREFIX
#define FORCE_FLOAT_REPRESENTATION