Set whether to run ClientProxy at startup.

If it does not start, do not create an instance of ClientProxy.
Change the name of ClientProxy to QoSm1Proxy

Signed-off-by: tomoaki <tomoaki@tomy-tech.com>
This commit is contained in:
tomoaki
2018-07-31 15:49:25 +09:00
parent e942ee451d
commit df080f2851
11 changed files with 112 additions and 88 deletions

View File

@@ -21,7 +21,7 @@
#include "MQTTSNPacket.h"
#include "MQTTSNGWForwarder.h"
#include "MQTTSNGWClientProxy.h"
#include "MQTTSNGWQoS-1Proxy.h"
namespace MQTTSNGW
{
@@ -159,13 +159,14 @@ typedef struct
char* privateKey;
char* predefinedTopicFileName;
char* forwarderListName;
char* qosm1proxyName;
char* qosMinusClientListName;
}GatewayParams;
/*=====================================
Class Gateway
=====================================*/
class ClientProxy;
class QoSm1Proxy;
class Gateway: public MultiTaskProcess{
public:
@@ -182,11 +183,11 @@ public:
SensorNetwork* getSensorNetwork(void);
LightIndicator* getLightIndicator(void);
GatewayParams* getGWParams(void);
ClientProxy* getClientProxy(void);
QoSm1Proxy* getQoSm1Proxy(void);
private:
ClientList _clientList;
ClientProxy* _clientProxy;
QoSm1Proxy* _qosm1Proxy;
ForwarderList _forwarderList;
EventQue _packetEventQue;
EventQue _brokerSendQue;