Rename Message and Cleanup

This commit is contained in:
2020-06-12 11:52:57 +02:00
parent 859e336eca
commit 8422bc503d
5 changed files with 14 additions and 13 deletions
+3 -3
View File
@@ -1,7 +1,7 @@
#ifndef MQTT_H
#define MQTT_H
#include "Message.h"
#include "MQTTMessage.h"
#include <functional>
#include <memory>
#include <string>
@@ -18,10 +18,10 @@ public:
~MQTT();
public:
typedef std::function<void(const Message&)> CallbackMethod;
typedef std::function<void(const MQTTMessage&)> CallbackMethod;
public:
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(CallbackMethod function);