LED_shit/main/include/mqtt_handler.h

24 lines
425 B
C
Raw Normal View History

2025-11-04 21:33:28 +00:00
#pragma once
#include "mqtt_client.h"
#ifdef __cplusplus
extern "C" {
#endif
2025-11-22 00:13:32 +00:00
extern esp_mqtt_client_handle_t mqtt_client;
// Exportar os tópicos MQTT (antes eram static!)
extern char topic_status[64];
extern char topic_cmd[64];
extern char topic_resp[64];
extern char topic_lwt[64];
// Opcional: loop placeholder
static inline void mqtt_handler_loop(void) {}
2025-11-04 21:33:28 +00:00
void mqtt_handler_start(void);
#ifdef __cplusplus
}
#endif