Ajout Thermostat
This commit is contained in:
10
Thermostat/include/mqtt_handler.h
Normal file
10
Thermostat/include/mqtt_handler.h
Normal file
@@ -0,0 +1,10 @@
|
||||
#pragma once
|
||||
#include <Arduino.h>
|
||||
#include <PubSubClient.h>
|
||||
|
||||
void setup_mqtt(PubSubClient& client);
|
||||
void mqtt_loop(PubSubClient& client);
|
||||
void mqtt_publish_state(PubSubClient& client, ThermostatMode mode, float targetTemp, bool heating);
|
||||
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