Generate the QoSm1Proxy Name from the Gateway Id.

Bugfix of AggregatePublish
Memory leak of ClientList

Signed-off-by: tomoaki <tomoaki@tomy-tech.com>
This commit is contained in:
tomoaki
2018-08-14 08:11:11 +09:00
parent 97cffe4573
commit 9de1dc3705
9 changed files with 32 additions and 46 deletions

View File

@@ -54,14 +54,9 @@ void QoSm1Proxy::initialize(void)
/* Create QoS-1 Clients */
_gateway->getClientList()->setClientList(QOSM1PROXY_TYPE);
/* set ClientId of this Proxy */
const char* name = CLIENTPROXY;
if (_gateway->getParam("QoS-1ProxyName", param) == 0 )
{
name = param;
}
/* initialize Adapter */
setup(name, Atype_QoSm1Proxy);
string name = string(_gateway->getGWParams()->gatewayName) + "QoS-1";
setup(name.c_str(), Atype_QoSm1Proxy);
_isActive = true;
}
}