24 lines
425 B
C
24 lines
425 B
C
#pragma once
|
|
#include "mqtt_client.h"
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
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) {}
|
|
|
|
void mqtt_handler_start(void);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|