mirror of
https://github.com/eclipse/paho.mqtt-sn.embedded-c.git
synced 2025-12-14 16:06:51 +01:00
BugFix of #126
and the content of the conf file matched with the sample program Signed-off-by: tomoaki <tomoaki@tomy-tech.com>
This commit is contained in:
@@ -227,7 +227,7 @@ void ClientProxy::resetPingTimer(void)
|
||||
|
||||
void ClientProxy::send(MQTTSNPacket* packet)
|
||||
{
|
||||
if ( packet->getType() == MQTTSN_CONNACK || packet->getType() == MQTTSN_PINGRESP )
|
||||
if ( packet->getType() == MQTTSN_CONNACK )
|
||||
{
|
||||
resetPingTimer();
|
||||
sendStoredPublish();
|
||||
@@ -236,6 +236,10 @@ void ClientProxy::send(MQTTSNPacket* packet)
|
||||
{
|
||||
resetPingTimer();
|
||||
}
|
||||
else if ( packet->getType() == MQTTSN_DISCONNECT )
|
||||
{
|
||||
// blank
|
||||
}
|
||||
}
|
||||
|
||||
void ClientProxy::sendStoredPublish(void)
|
||||
|
||||
Reference in New Issue
Block a user