mirror of
https://github.com/eclipse/paho.mqtt-sn.embedded-c.git
synced 2025-12-15 16:36:52 +01:00
@@ -572,7 +572,7 @@ void Client::resetPingRequest(void)
|
|||||||
_holdPingRequest = false;
|
_holdPingRequest = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool Client::isHoldPringReqest(void)
|
bool Client::isHoldPingReqest(void)
|
||||||
{
|
{
|
||||||
return _holdPingRequest;
|
return _holdPingRequest;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -252,7 +252,7 @@ public:
|
|||||||
|
|
||||||
void holdPingRequest(void);
|
void holdPingRequest(void);
|
||||||
void resetPingRequest(void);
|
void resetPingRequest(void);
|
||||||
bool isHoldPringReqest(void);
|
bool isHoldPingReqest(void);
|
||||||
|
|
||||||
Client* getNextClient(void);
|
Client* getNextClient(void);
|
||||||
|
|
||||||
|
|||||||
@@ -239,7 +239,7 @@ void MQTTSNPublishHandler::handleRegAck( Client* client, MQTTSNPacket* packet)
|
|||||||
ev->setClientSendEvent(client, regAck);
|
ev->setClientSendEvent(client, regAck);
|
||||||
_gateway->getClientSendQue()->post(ev);
|
_gateway->getClientSendQue()->post(ev);
|
||||||
}
|
}
|
||||||
if (client->isHoldPringReqest() && client->getWaitREGACKPacketList()->getCount() == 0 )
|
if (client->isHoldPingReqest() && client->getWaitREGACKPacketList()->getCount() == 0 )
|
||||||
{
|
{
|
||||||
/* send PINGREQ to the broker */
|
/* send PINGREQ to the broker */
|
||||||
client->resetPingRequest();
|
client->resetPingRequest();
|
||||||
|
|||||||
Reference in New Issue
Block a user