Skip to content

Commit

Permalink
NetTypes.h - esp8266 3.1+ compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
JAndrassy committed Jan 21, 2023
1 parent d6d7c66 commit 949e89e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/NetTypes.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,11 @@ repository https://github.com/jandrassy

#if defined(ESP8266)
#include <ESP8266WiFi.h>
#if (ARDUINO_ESP8266_MAJOR < 3)
#include "ArduinoWiFiServer.h"
#else
#include <ArduinoWiFiServer.h> // in ESP8266WiFi library
#endif
#define NetClient WiFiClient
#define NetServer ArduinoWiFiServer

Expand Down

0 comments on commit 949e89e

Please sign in to comment.