mirror of
https://github.com/eclipse/paho.mqtt-sn.embedded-c.git
synced 2025-12-14 07:56:52 +01:00
Update: DISCONNECT (Issue #31) and others
Signed-off-by: tomoaki <tomoaki@tomy-tech.com>
This commit is contained in:
@@ -109,7 +109,11 @@ void PacketHandleTask::run()
|
||||
client = clist->getClient();
|
||||
while (client > 0)
|
||||
{
|
||||
client->checkTimeover();
|
||||
if ( client->checkTimeover() )
|
||||
{
|
||||
_mqttsnConnection->handleDisconnect(client, 0);
|
||||
client->disconnected();
|
||||
}
|
||||
client = client->getNextClient();
|
||||
}
|
||||
/*------ Check Keep Alive Timer & send Advertise ------*/
|
||||
@@ -200,9 +204,6 @@ void PacketHandleTask::run()
|
||||
case CONNACK:
|
||||
_mqttConnection->handleConnack(client, brPacket);
|
||||
break;
|
||||
case DISCONNECT:
|
||||
_mqttConnection->handleDisconnect(client, brPacket);
|
||||
break;
|
||||
case PINGRESP:
|
||||
_mqttConnection->handlePingresp(client, brPacket);
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user