Skip to content

Commit

Permalink
Merge pull request #84 from ESP32Async/example
Browse files Browse the repository at this point in the history
Adding Serial.printf in WebSocket example
  • Loading branch information
mathieucarbou authored Feb 18, 2025
2 parents e104b31 + 68c2690 commit 420fe44
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 420fe44

Please sign in to comment.