Implementation of Unsuback (unless MqttClient disconnects)

This commit is contained in:
hsaturn
2021-04-11 01:58:44 +02:00
parent 7bdb9cc0cd
commit c59bddfd39
2 changed files with 6 additions and 0 deletions

View File

@@ -498,6 +498,11 @@ if (mesg->type() != MqttMessage::Type::PingReq && mesg->type() != MqttMessage::T
}
break;
case MqttMessage::Type::UnSuback:
if (!mqtt_connected) break;
bclose = false;
break;
case MqttMessage::Type::Publish:
if (mqtt_connected or client == nullptr)
{