QoS-1 PUBLISH is available #34

BugFix of #69

Signed-off-by: tomoaki <tomoaki@tomy-tech.com>
This commit is contained in:
tomoaki
2018-07-29 16:11:38 +09:00
parent 9940aadd4b
commit 4932d2d0ee
32 changed files with 1274 additions and 348 deletions

View File

@@ -17,10 +17,12 @@
#define MQTTSNGATEWAY_H_
#include "MQTTSNGWClient.h"
#include "MQTTSNGWForwarder.h"
#include "MQTTSNGWProcess.h"
#include "MQTTSNPacket.h"
#include "MQTTSNGWForwarder.h"
#include "MQTTSNGWClientProxy.h"
namespace MQTTSNGW
{
/*=================================
@@ -43,6 +45,7 @@ namespace MQTTSNGW
#define CLIENT "Client"
#define CLIENTS "Clients"
#define UNKNOWNCL "Unknown Client !"
#define CLIENTPROXY "ClientProxy"
#define LEFTARROW "<---"
#define RIGHTARROW "--->"
@@ -156,11 +159,14 @@ typedef struct
char* privateKey;
char* predefinedTopicFileName;
char* forwarderListName;
char* qosMinusClientListName;
}GatewayParams;
/*=====================================
Class Gateway
=====================================*/
class ClientProxy;
class Gateway: public MultiTaskProcess{
public:
Gateway();
@@ -176,9 +182,11 @@ public:
SensorNetwork* getSensorNetwork(void);
LightIndicator* getLightIndicator(void);
GatewayParams* getGWParams(void);
ClientProxy* getClientProxy(void);
private:
ClientList _clientList;
ClientProxy* _clientProxy;
ForwarderList _forwarderList;
EventQue _packetEventQue;
EventQue _brokerSendQue;