From e721303ed1956476580d133ad30e811edc6f4fdc Mon Sep 17 00:00:00 2001 From: Gregor Baues Date: Wed, 9 Jun 2021 08:58:27 +0200 Subject: [PATCH] Cleanup diags --- MQTTCallbackHandlers.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/MQTTCallbackHandlers.cpp b/MQTTCallbackHandlers.cpp index 04bac44..d94c6e9 100644 --- a/MQTTCallbackHandlers.cpp +++ b/MQTTCallbackHandlers.cpp @@ -92,7 +92,7 @@ void protocolHandler(MQTTInterface *mqtt, csmsg_t &tm) { void mqttMCallback(MQTTInterface *mqtt, csmsg_t &tm) { auto clients = mqtt->getClients(); - DIAG(F("MQTT m - Callback")); + // DIAG(F("MQTT m - Callback")); switch (tm.cmd[1]) { case 'i': // Inital handshake message to create the tunnel @@ -103,7 +103,7 @@ void mqttMCallback(MQTTInterface *mqtt, csmsg_t &tm) strlcpy(buffer, tmp, length); buffer[length - 4] = '\0'; - DIAG(F("MQTT buffer %s - %s - %s - %d"), tm.cmd, tmp, buffer, length); + // DIAG(F("MQTT buffer %s - %s - %s - %d"), tm.cmd, tmp, buffer, length); auto distantid = strtol(buffer, NULL, 10); @@ -151,7 +151,7 @@ void mqttMCallback(MQTTInterface *mqtt, csmsg_t &tm) */ void mqttProtocolCallback(MQTTInterface *mqtt, csmsg_t &tm) { - DIAG(F("MQTT Protocol - Callback")); + // DIAG(F("MQTT Protocol - Callback")); } /** @@ -160,7 +160,7 @@ void mqttProtocolCallback(MQTTInterface *mqtt, csmsg_t &tm) void mqttDCCEXCallback(MQTTInterface *mqtt, csmsg_t &tm) // void mqttDCCEXCallback(MQTTInterface *mqtt, char *topic, char *payload, unsigned int length) { - DIAG(F("MQTT DCCEX - Callback")); + // DIAG(F("MQTT DCCEX - Callback")); if (!tm.mqsocket) { DIAG(F("MQTT Can't identify sender; command send on wrong topic"));