feat: module MQTT — PubSubClient, deadband, reconnexion non-bloquante
Implémente mqtt_manager.h/.cpp : connexion sans authentification si MQTT_USER vide, filtre deadband par sonde, retain=true, jamais de valeur d'erreur publiée. Intégration dans main.cpp (mqtt_init/update). Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
#pragma once
|
||||
|
||||
// Initialise le client MQTT (serveur + port)
|
||||
void mqtt_init();
|
||||
|
||||
// À appeler à chaque loop() : reconnexion non-bloquante + publication deadband
|
||||
void mqtt_update();
|
||||
Reference in New Issue
Block a user