Gestion MQTT

This commit is contained in:
Serge NOEL
2026-03-11 14:29:08 +01:00
parent e723bf87cb
commit 59f7ae7ab3
4 changed files with 20 additions and 2 deletions

View File

@@ -1,6 +1,8 @@
#pragma once
#include <Arduino.h>
#include <PubSubClient.h>
#include "thermostat.h"
void setup_mqtt(PubSubClient& client);
void mqtt_loop(PubSubClient& client);
@@ -8,3 +10,4 @@ void mqtt_publish_state(PubSubClient& client, ThermostatMode mode, float targetT
void mqtt_callback(char* topic, byte* payload, unsigned int length);
extern String mqtt_device_id;
extern String mqtt_temp_topic;