From c4f3cd4506c9a2eea8e880a0543f3999f4fb8a74 Mon Sep 17 00:00:00 2001 From: Alexander Entinger Date: Fri, 21 Feb 2020 08:05:51 +0100 Subject: [PATCH] Adding size of MQTT message to be transmitted to debug output --- src/MqttClient.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/MqttClient.cpp b/src/MqttClient.cpp index af93a03..acc8b34 100644 --- a/src/MqttClient.cpp +++ b/src/MqttClient.cpp @@ -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]; pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy