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
@@ -97,7 +97,7 @@ class AsyncClient {
97
97
bool connect (ip_addr_t addr, uint16_t port);
98
98
#ifdef ARDUINO
99
99
bool connect (const IPAddress &ip, uint16_t port);
100
- #if ESP_IDF_VERSION_MAJOR < 5
100
+ #if __has_include(<IPv6Address.h>)
101
101
bool connect (const IPv6Address &ip, uint16_t port);
102
102
#endif
103
103
#endif
@@ -211,7 +211,7 @@ class AsyncClient {
211
211
ip6_addr_t getRemoteAddress6 () const ;
212
212
ip6_addr_t getLocalAddress6 () const ;
213
213
#ifdef ARDUINO
214
- #if ESP_IDF_VERSION_MAJOR < 5
214
+ #if __has_include(<IPv6Address.h>)
215
215
IPv6Address remoteIP6 () const ;
216
216
IPv6Address localIP6 () const ;
217
217
#else
@@ -311,7 +311,7 @@ class AsyncServer {
311
311
AsyncServer (ip_addr_t addr, uint16_t port);
312
312
#ifdef ARDUINO
313
313
AsyncServer (IPAddress addr, uint16_t port);
314
- #if ESP_IDF_VERSION_MAJOR < 5
314
+ #if __has_include(<IPv6Address.h>)
315
315
AsyncServer (IPv6Address addr, uint16_t port);
316
316
#endif
317
317
#endif
You can’t perform that action at this time.
0 commit comments