From 4fb53572f511f832a7e6a7afa3ba91093959f9ae Mon Sep 17 00:00:00 2001 From: Harald Barth Date: Sat, 20 Aug 2022 11:45:29 +0200 Subject: [PATCH] Diag outgoing messages on ESP32 --- WifiESP32.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/WifiESP32.cpp b/WifiESP32.cpp index f00d6f4..2226a01 100644 --- a/WifiESP32.cpp +++ b/WifiESP32.cpp @@ -294,6 +294,8 @@ void WifiESP::loop() { // buffer filled, end with '\0' so we can use it as C string buffer[count]='\0'; if((unsigned int)clientId <= clients.size() && clients[clientId].ok()) { + if (Diag::CMD || Diag::WITHROTTLE) + DIAG(F("SEND %d:%s"), clientId, buffer); clients[clientId].wifi.write(buffer,count); } else { DIAG(F("Unsent(%d): %s"), clientId, buffer);