forked from me-no-dev/AsyncTCP
-
Notifications
You must be signed in to change notification settings - Fork 35
Closed
Description
IDE / Tooling
PlatformIO
What happened?
I get this error at compile time. The library works just fine in ArduinoIDE.
Compiling .pio/build/esp32-c3-devkitm-1/lib787/AsyncTCP/AsyncTCP.cpp.o
Compiling .pio/build/esp32-c3-devkitm-1/liba9a/RPAsyncTCP/AsyncPrinter.cpp.o
Compiling .pio/build/esp32-c3-devkitm-1/liba9a/RPAsyncTCP/RPAsyncTCP.cpp.o
.pio/libdeps/esp32-c3-devkitm-1/RPAsyncTCP/src/RPAsyncTCP.cpp: In member function 'bool AsyncClient::connect(IPAddress, uint16_t)':
.pio/libdeps/esp32-c3-devkitm-1/RPAsyncTCP/src/RPAsyncTCP.cpp:231:8: error: 'ip_addr_t' {aka 'struct ip_addr'} has no member named 'addr'; did you mean 'u_addr'?
addr.addr = ip;
^~~~
u_addr
.pio/libdeps/esp32-c3-devkitm-1/RPAsyncTCP/src/RPAsyncTCP.cpp: In member function 'bool AsyncClient::connect(const char*, uint16_t)':
.pio/libdeps/esp32-c3-devkitm-1/RPAsyncTCP/src/RPAsyncTCP.cpp:290:42: error: 'ip_addr_t' {aka 'struct ip_addr'} has no member named 'addr'; did you mean 'u_addr'?
returnValue = connect(IPAddress(addr.addr), port);
^~~~
u_addr
In file included from .pio/libdeps/esp32-c3-devkitm-1/RPAsyncTCP/src/RPAsyncTCP.h:15,
from .pio/libdeps/esp32-c3-devkitm-1/RPAsyncTCP/src/RPAsyncTCP.cpp:7:
.pio/libdeps/esp32-c3-devkitm-1/RPAsyncTCP/src/RPAsyncTCP.cpp:293:73: error: 'ip_addr_t' {aka 'struct ip_addr'} has no member named 'addr'; did you mean 'u_addr'?
ATCP_LOGDEBUG3("connect: dns_gethostbyname => IP =", IPAddress(addr.addr), ", returnValue = ", returnValue ? "TRUE" : "FALSE");
^~~~
.pio/libdeps/esp32-c3-devkitm-1/RPAsyncTCP/src/RPAsyncTCP_Debug.h:61:122: note: in definition of macro 'ATCP_LOGDEBUG3'
#define ATCP_LOGDEBUG3(x,y,z,w) if(_RPAsyncTCP_LOGLEVEL_>3) { ATCP_PRINT_MARK; ATCP_PRINT(x); ATCP_PRINT_SP; ATCP_PRINT(y); ATCP_PRINT_SP; ATCP_PRINT(z); ATCP_PRINT_SP; ATCP_PRINTLN(w); }
^
.pio/libdeps/esp32-c3-devkitm-1/RPAsyncTCP/src/RPAsyncTCP.cpp: In member function 'bool AsyncClient::operator==(const AsyncClient&) const':
.pio/libdeps/esp32-c3-devkitm-1/RPAsyncTCP/src/RPAsyncTCP.cpp:368:66: error: 'ip_addr_t' {aka 'struct ip_addr'} has no member named 'addr'; did you mean 'u_addr'?
return (_pcb != NULL && other._pcb != NULL && (_pcb->remote_ip.addr == other._pcb->remote_ip.addr) &&
^~~~
u_addr
.pio/libdeps/esp32-c3-devkitm-1/RPAsyncTCP/src/RPAsyncTCP.cpp:368:96: error: 'ip_addr_t' {aka 'struct ip_addr'} has no member named 'addr'; did you mean 'u_addr'?
return (_pcb != NULL && other._pcb != NULL && (_pcb->remote_ip.addr == other._pcb->remote_ip.addr) &&
^~~~
u_addr
.pio/libdeps/esp32-c3-devkitm-1/RPAsyncTCP/src/RPAsyncTCP.cpp: In member function 'void AsyncClient::_dns_found(ip_addr_t*)':
Stack Trace
can't compile
Minimal Reproductible Example (MRE)
just include this
#include <Arduino.h>
#include <WiFi.h> // ESP32
#include <AsyncTCP.h>
#include <ESPAsyncWebServer.h>
#include <DNSServer.h>
#include <LittleFS.h>
#include <ArduinoJson.h> // v6
I confirm that:
- I have read the documentation.
- I have searched for similar discussions.
- I have searched for similar issues.
- I have looked at the examples.
- I have upgraded to the lasted version of AsyncTCP.
Metadata
Metadata
Assignees
Labels
No labels