mirror of
https://github.com/eclipse/paho.mqtt-sn.embedded-c.git
synced 2025-12-16 08:56:51 +01:00
@@ -21,13 +21,13 @@
|
||||
#include <string>
|
||||
#include <string.h>
|
||||
|
||||
|
||||
using namespace MQTTSNGW;
|
||||
|
||||
/*=====================================
|
||||
Class QoSm1Proxy
|
||||
Class QoSm1Proxy
|
||||
=====================================*/
|
||||
QoSm1Proxy:: QoSm1Proxy(Gateway* gw) : Adapter(gw)
|
||||
QoSm1Proxy::QoSm1Proxy(Gateway* gw) :
|
||||
Adapter(gw)
|
||||
{
|
||||
_gateway = gw;
|
||||
}
|
||||
@@ -37,24 +37,22 @@ QoSm1Proxy::~QoSm1Proxy(void)
|
||||
|
||||
}
|
||||
|
||||
|
||||
void QoSm1Proxy::initialize(char* gwName)
|
||||
{
|
||||
if ( _gateway->hasSecureConnection() )
|
||||
if (_gateway->hasSecureConnection())
|
||||
{
|
||||
_isSecure = true;
|
||||
_isSecure = true;
|
||||
}
|
||||
|
||||
/* Create QoS-1 Clients from clients.conf */
|
||||
_gateway->getClientList()->setClientList(QOSM1PROXY_TYPE);
|
||||
/* Create QoS-1 Clients from clients.conf */
|
||||
_gateway->getClientList()->setClientList(QOSM1PROXY_TYPE);
|
||||
|
||||
/* Create a client for QoS-1 proxy */
|
||||
string name = string(gwName) + string("_QoS-1");
|
||||
setup(name.c_str(), Atype_QoSm1Proxy);
|
||||
_isActive = true;
|
||||
/* Create a client for QoS-1 proxy */
|
||||
string name = string(gwName) + string("_QoS-1");
|
||||
setup(name.c_str(), Atype_QoSm1Proxy);
|
||||
_isActive = true;
|
||||
}
|
||||
|
||||
|
||||
bool QoSm1Proxy::isActive(void)
|
||||
{
|
||||
return _isActive;
|
||||
|
||||
Reference in New Issue
Block a user