Skip to content

Commit

Permalink
Clear send buffer error manually
Browse files Browse the repository at this point in the history
  • Loading branch information
rechrtb committed Sep 26, 2023
1 parent 8a5673d commit d4893ad
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/Networking/MQTT/MqttClient.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,14 @@ bool MqttClient::Spin() noexcept
{
res = true;
}
else
{
if (err == MQTT_ERROR_SEND_BUFFER_IS_FULL)
{
client.error = MQTT_OK;
res = true;
}
}
}
break;

Expand Down

0 comments on commit d4893ad

Please sign in to comment.