Signed-off-by: tomoaki <tomoaki@tomy-tech.com>
This commit is contained in:
tomoaki
2019-10-03 10:39:44 +09:00
parent 2067e6fe92
commit 271b635d3f
3 changed files with 3 additions and 3 deletions

View File

@@ -572,7 +572,7 @@ void Client::resetPingRequest(void)
_holdPingRequest = false;
}
bool Client::isHoldPringReqest(void)
bool Client::isHoldPingReqest(void)
{
return _holdPingRequest;
}

View File

@@ -252,7 +252,7 @@ public:
void holdPingRequest(void);
void resetPingRequest(void);
bool isHoldPringReqest(void);
bool isHoldPingReqest(void);
Client* getNextClient(void);

View File

@@ -239,7 +239,7 @@ void MQTTSNPublishHandler::handleRegAck( Client* client, MQTTSNPacket* packet)
ev->setClientSendEvent(client, regAck);
_gateway->getClientSendQue()->post(ev);
}
if (client->isHoldPringReqest() && client->getWaitREGACKPacketList()->getCount() == 0 )
if (client->isHoldPingReqest() && client->getWaitREGACKPacketList()->getCount() == 0 )
{
/* send PINGREQ to the broker */
client->resetPingRequest();