12 lines
332 B
C++
12 lines
332 B
C++
#pragma once
|
|
|
|
#include "mqtt_config.hpp"
|
|
#include "logger.hpp"
|
|
#include "mqtt_client.hpp"
|
|
|
|
// 启动 MQTT 客户端(内部自动连接、订阅、发布等)
|
|
void mqtt_client_thread_func();
|
|
|
|
// 外部可访问的 MQTT 客户端指针
|
|
extern std::shared_ptr<MQTTClient> mqtt_client;
|
|
extern std::atomic<bool> mqtt_restart_required; |