Files
Control_Panel/gateway/mqtt_handler.h
T
2026-07-15 18:37:19 +09:00

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