mirror of
https://github.com/eclipse/paho.mqtt-sn.embedded-c.git
synced 2025-12-15 16:36:52 +01:00
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:
@@ -114,8 +114,12 @@ void PacketHandleTask::run()
|
||||
_advertiseTimer.start(_gateway->getGWParams()->keepAlive * 1000UL);
|
||||
}
|
||||
|
||||
/*------ Check ClientProxy to Connect or send PINGREQ ------*/
|
||||
_gateway->getClientProxy()->checkConnection();
|
||||
/*------ Check QoS-1 Proxy Connect or PINGREQ ------*/
|
||||
QoSm1Proxy* pxy = _gateway->getQoSm1Proxy();
|
||||
if ( pxy )
|
||||
{
|
||||
pxy->checkConnection();
|
||||
}
|
||||
}
|
||||
|
||||
/*------ Handle SEARCHGW Message ---------*/
|
||||
|
||||
Reference in New Issue
Block a user