mirror of
https://github.com/eclipse/paho.mqtt-sn.embedded-c.git
synced 2025-12-14 16:06:51 +01:00
BugFix add retry PINGREQ and re CONNECT #126
Signed-off-by: tomoaki <tomoaki@tomy-tech.com>
This commit is contained in:
@@ -128,6 +128,8 @@ void ClientRecvTask::run()
|
||||
}
|
||||
else
|
||||
{
|
||||
client = 0;
|
||||
|
||||
/* when QoSm1Proxy is available, select QoS-1 PUBLISH message */
|
||||
QoSm1Proxy* pxy = _gateway->getQoSm1Proxy();
|
||||
if ( pxy )
|
||||
@@ -152,7 +154,8 @@ void ClientRecvTask::run()
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
|
||||
if ( client == 0 )
|
||||
{
|
||||
/* get client from the ClientList of Gateway by sensorNetAddress. */
|
||||
client = _gateway->getClientList()->getClient(_sensorNetwork->getSenderAddress());
|
||||
|
||||
Reference in New Issue
Block a user