Gestion MQTT
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user