1
0
mirror of https://github.com/esphome/esphome.git synced 2025-09-16 18:22:22 +01:00
This commit is contained in:
J. Nick Koston
2025-07-20 14:07:52 -10:00
parent eea7b9843b
commit e1be941bda
4 changed files with 12 additions and 10 deletions

View File

@@ -21,6 +21,15 @@ namespace api {
// uncomment to log raw packets
//#define HELPER_LOG_PACKETS
// Packet logging macros
#ifdef HELPER_LOG_PACKETS
#define LOG_PACKET_RECEIVED(buffer) ESP_LOGVV(TAG, "Received frame: %s", format_hex_pretty(buffer).c_str())
#define LOG_PACKET_SENDING(data, len) ESP_LOGVV(TAG, "Sending raw: %s", format_hex_pretty(data, len).c_str())
#else
#define LOG_PACKET_RECEIVED(buffer) ((void) 0)
#define LOG_PACKET_SENDING(data, len) ((void) 0)
#endif
// Forward declaration
struct ClientInfo;