|
|
@@ -1,8 +1,8 @@
|
|
|
#ifndef MQTT_MQTTIMPL_H
|
|
|
#define MQTT_MQTTIMPL_H
|
|
|
|
|
|
-#include "Message.h"
|
|
|
#include "MQTT.h"
|
|
|
+#include "MQTTMessage.h"
|
|
|
#include <SimpleSignal.h>
|
|
|
#include <mutex>
|
|
|
#include <string>
|
|
|
@@ -20,14 +20,14 @@ public:
|
|
|
MQTTImpl(const std::string& hostname, int port);
|
|
|
~MQTTImpl();
|
|
|
|
|
|
- bool Send(const Message& message);
|
|
|
+ bool Send(const MQTTMessage& message);
|
|
|
bool Subscribe(const std::string& topic);
|
|
|
void Unsubscribe(const std::string& topic);
|
|
|
size_t Connect(MQTT::CallbackMethod function);
|
|
|
void Disconnect(size_t connection);
|
|
|
|
|
|
private:
|
|
|
- typedef Simple::Signal<void(const Message&)> MessageSignal;
|
|
|
+ typedef Simple::Signal<void(const MQTTMessage&)> MessageSignal;
|
|
|
|
|
|
private:
|
|
|
static void ConnectCallback(mosquitto* pMosquitto, void* pObject, int result);
|