17 lines
340 B
C
17 lines
340 B
C
#ifndef MQTT_HANDLER_H
|
|
#define MQTT_HANDLER_H
|
|
|
|
#include <Arduino.h>
|
|
#include <PubSubClient.h>
|
|
|
|
extern PubSubClient client;
|
|
|
|
void setup_mqtt();
|
|
void maintain_mqtt();
|
|
bool detect_and_publish_M();
|
|
bool detect_and_publish_D();
|
|
bool process_read_changes();
|
|
void publish_ack(const char* command_id, const char* status);
|
|
|
|
#endif // MQTT_HANDLER_H
|