Fix sample

This commit is contained in:
Mathieu Carbou
2024-11-20 23:18:51 +01:00
parent d7c23e8417
commit 29198a2436

View File

@@ -26,7 +26,7 @@ void onWsEvent(AsyncWebSocket* server, AsyncWebSocketClient* client, AwsEventTyp
} else if (type == WS_EVT_ERROR) { } else if (type == WS_EVT_ERROR) {
Serial.printf("Client #%" PRIu32 " error.\n", client->id()); Serial.printf("Client #%" PRIu32 " error.\n", client->id());
} else if (type == WS_EVT_DATA) { } else if (type == WS_EVT_DATA) {
Serial.printf("Client #%" PRIu32 " data: %.*s\n", client->id(), len, data); Serial.printf("Client #%" PRIu32 " len: %u\n", client->id(), len);
} }
} }