Skip to content

Commit

Permalink
Adding size of MQTT message to be transmitted to debug output (arduin…
Browse files Browse the repository at this point in the history
  • Loading branch information
aentinger authored Feb 21, 2020
1 parent cd59ba1 commit 4858270
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/MqttClient.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1135,7 +1135,9 @@ int MqttClient::clientPeek()
size_t MqttClient::clientWrite(const uint8_t *buf, size_t size)
{
#ifdef MQTT_CLIENT_DEBUG
Serial.print("TX: ");
Serial.print("TX[");
Serial.print(size);
Serial.print("]: ");
for (size_t i = 0; i < size; i++) {
uint8_t b = buf[i];

Expand Down

0 comments on commit 4858270

Please sign in to comment.