mirror of
https://github.com/eclipse/paho.mqtt-sn.embedded-c.git
synced 2025-12-16 08:56:51 +01:00
QoS-1 PUBLISH is available #34
BugFix of #69 Signed-off-by: tomoaki <tomoaki@tomy-tech.com>
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user