Skip to content

Commit

Permalink
Fix compilation errors for lower versions (2.x)
Browse files Browse the repository at this point in the history
  • Loading branch information
lewisxhe committed Apr 13, 2024
1 parent 7102186 commit 125aba9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions examples/WebSocketClient/WebSocketClient.ino
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
#include <Arduino.h>
#if ESP_ARDUINO_VERSION < ESP_ARDUINO_VERSION_VAL(3,0,0)
#include <ETHClass2.h> //Is to use the modified ETHClass
#define ETH ETH2
#include "esp_websocket_client.h"
#else
#include <ETH.h>
Expand Down

0 comments on commit 125aba9

Please sign in to comment.