BugFix add retry PINGREQ and re CONNECT #126

Signed-off-by: tomoaki <tomoaki@tomy-tech.com>
This commit is contained in:
tomoaki
2018-07-31 17:41:28 +09:00
parent df080f2851
commit 862e501512
6 changed files with 40 additions and 13 deletions

View File

@@ -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());