8000 fix compiler warnings for ESP32 - #319 · TuxRobotics/arduinoWebSockets@388683d · GitHub
[go: up one dir, main page]

Skip to content

Commit 388683d

Browse files
committed
fix compiler warnings for ESP32 - Links2004#319
1 parent 38c401b commit 388683d

File tree

3 files changed

+18
-0
lines changed

3 files changed

+18
-0
lines changed

examples/esp32/WebSocketClient/WebSocketClient.ino

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,12 @@ void webSocketEvent(WStype_t type, uint8_t * payload, size_t length) {
5757
// send data to server
5858
// webSocket.sendBIN(payload, length);
5959
break;
60+
case WStype_ERROR:
61+
case WStype_FRAGMENT_TEXT_START:
62+
case WStype_FRAGMENT_BIN_START:
63+
case WStype_FRAGMENT:
64+
case WStype_FRAGMENT_FIN:
65+
break;
6066
}
6167

6268
}

examples/esp32/WebSocketClientSSL/WebSocketClientSSL.ino

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,12 @@ void webSocketEvent(WStype_t type, uint8_t * payload, size_t length) {
6262
// send data to server
6363
// webSocket.sendBIN(payload, length);
6464
break;
65+
case WStype_ERROR:
66+
case WStype_FRAGMENT_TEXT_START:
67+
case WStype_FRAGMENT_BIN_START:
68+
case WStype_FRAGMENT:
69+
case WStype_FRAGMENT_FIN:
70+
break;
6571
}
6672

6773
}

examples/esp32/WebSocketServer/WebSocketServer.ino

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,12 @@ void webSocketEvent(uint8_t num, WStype_t type, uint8_t * payload, size_t length
6262
// send message to client
6363
// webSocket.sendBIN(num, payload, length);
6464
break;
65+
case WStype_ERROR:
66+
case WStype_FRAGMENT_TEXT_START:
67+
case WStype_FRAGMENT_BIN_START:
68+
case WStype_FRAGMENT:
69+
case WStype_FRAGMENT_FIN:
70+
break;
6571
}
6672

6773
}

0 commit comments

Comments
 (0)
0