Skip to content

Commit

Permalink
adapt for Arduino's WiFiS3 library
Browse files Browse the repository at this point in the history
  • Loading branch information
JAndrassy committed Aug 30, 2023
1 parent 2e58462 commit bab6b6a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/NetTypes.h
Original file line number Diff line number Diff line change
Expand Up @@ -63,12 +63,14 @@ repository https://github.com/jandrassy

#else
#include <WiFi.h>
#include <WiFiServer.h>
#define NetClient WiFiClient
#define NetServer WiFiServer
#endif

#else // not defined __has_include
#include <WiFi.h>
#include <WiFiServer.h>
#define NetClient WiFiClient
#define NetServer WiFiServer
#endif
Expand Down
2 changes: 2 additions & 0 deletions src/TelnetStream.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ boolean TelnetStreamClass::disconnected() {
#if __has_include(<WiFiNINA.h>) || __has_include(<WiFi101.h>)
if (server.status() == 0) // 0 is CLOSED
return true;
#elif __has_include(<WiFiS3.h>)
// no bool operator, no status() function
#else
if (!server)
return true;
Expand Down

0 comments on commit bab6b6a

Please sign in to comment.