Skip to content

Commit 420fe44

Browse files
Merge pull request #84 from ESP32Async/example
Adding Serial.printf in WebSocket example
2 parents e104b31 + 68c2690 commit 420fe44

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

examples/WebSocket/WebSocket.ino

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ void setup() {
6060

6161
} else if (type == WS_EVT_DATA) {
6262
AwsFrameInfo *info = (AwsFrameInfo *)arg;
63+
Serial.printf("index: %" PRIu64 ", len: %" PRIu64 ", final: %" PRIu8 ", opcode: %" PRIu8 "\n", info->index, info->len, info->final, info->opcode);
6364
String msg = "";
6465
if (info->final && info->index == 0 && info->len == len) {
6566
if (info->opcode == WS_TEXT) {

0 commit comments

Comments
 (0)