From 68c269096d282f8dcc4aedb62953fe3e96e89b27 Mon Sep 17 00:00:00 2001 From: Mathieu Carbou Date: Tue, 18 Feb 2025 10:21:43 +0100 Subject: [PATCH] Adding Serial.printf in WebSocket example --- examples/WebSocket/WebSocket.ino | 1 + 1 file changed, 1 insertion(+) diff --git a/examples/WebSocket/WebSocket.ino b/examples/WebSocket/WebSocket.ino index 43b2bb6c..170fe517 100644 --- a/examples/WebSocket/WebSocket.ino +++ b/examples/WebSocket/WebSocket.ino @@ -60,6 +60,7 @@ void setup() { } else if (type == WS_EVT_DATA) { AwsFrameInfo *info = (AwsFrameInfo *)arg; + Serial.printf("index: %" PRIu64 ", len: %" PRIu64 ", final: %" PRIu8 ", opcode: %" PRIu8 "\n", info->index, info->len, info->final, info->opcode); String msg = ""; if (info->final && info->index == 0 && info->len == len) { if (info->opcode == WS_TEXT) {