Skip to content

Commit

Permalink
Adding Serial.printf in WebSocket example
Browse files Browse the repository at this point in the history
  • Loading branch information
mathieucarbou committed Feb 18, 2025
1 parent e104b31 commit 68c2690
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions examples/WebSocket/WebSocket.ino
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 68c2690

Please sign in to comment.