10 lines
240 B
C
10 lines
240 B
C
|
|
#pragma once
|
||
|
|
#include "../mqtt_client.h" // 注意 #include 路径的变化
|
||
|
|
|
||
|
|
class CommandHandler {
|
||
|
|
public:
|
||
|
|
explicit CommandHandler(MqttClient& client);
|
||
|
|
void handle(mqtt::const_message_ptr msg);
|
||
|
|
private:
|
||
|
|
MqttClient& m_client;
|
||
|
|
};
|