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 Oct 13, 2023
1 parent 33ec4b2 commit 3bc2d1e
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/Networking/MQTT/MqttClient.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,16 @@ bool MqttClient::Spin() noexcept
{
res = true;
}
else
{
// Workaround for a temporary bug where the error MQTT_ERROR_SEND_BUFFER_IS_FULL
// is not cleared even if the send buffer has been drained already.
if (err == MQTT_ERROR_SEND_BUFFER_IS_FULL)
{
client.error = MQTT_OK;
res = true;
}
}
}
break;

Expand Down

0 comments on commit 3bc2d1e

Please sign in to comment.