File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 11
11
12
12
#ifdef ARDUINO
13
13
#include " IPAddress.h"
14
- #if ESP_IDF_VERSION_MAJOR < 5
14
+ #if __has_include(<IPv6Address.h>)
15
15
#include " IPv6Address.h"
16
16
#endif
17
17
#endif
@@ -91,7 +91,7 @@ class AsyncClient {
91
91
bool connect (ip_addr_t addr, uint16_t port);
92
92
#ifdef ARDUINO
93
93
bool connect (const IPAddress &ip, uint16_t port);
94
- #if ESP_IDF_VERSION_MAJOR < 5
94
+ #if __has_include(<IPv6Address.h>)
95
95
bool connect (const IPv6Address &ip, uint16_t port);
96
96
#endif
97
97
#endif
@@ -205,7 +205,7 @@ class AsyncClient {
205
205
ip6_addr_t getRemoteAddress6 () const ;
206
206
ip6_addr_t getLocalAddress6 () const ;
207
207
#ifdef ARDUINO
208
- #if ESP_IDF_VERSION_MAJOR < 5
208
+ #if __has_include(<IPv6Address.h>)
209
209
IPv6Address remoteIP6 () const ;
210
210
IPv6Address localIP6 () const ;
211
211
#else
@@ -319,7 +319,7 @@ class AsyncServer {
319
319
AsyncServer (ip_addr_t addr, uint16_t port);
320
320
#ifdef ARDUINO
321
321
AsyncServer (IPAddress addr, uint16_t port);
322
- #if ESP_IDF_VERSION_MAJOR < 5
322
+ #if __has_include(<IPv6Address.h>)
323
323
AsyncServer (IPv6Address addr, uint16_t port);
324
324
#endif
325
325
#endif
You can’t perform that action at this time.
0 commit comments