You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Dec 17, 2020. It is now read-only.
Firmware build failed if latest ESPAsyncTCP version is used from automatic library installation.
I've tried to build with VSCode (latest version) and Atom (latest version), running on Ubuntu 18.04 64bit.
Both IDEs installed ESPAsyncTCP version 1.2.2.
The build fails everytime with this error: .pio/libdeps/d1_mini_lite/ESPAsyncTCP_ID305/src/ESPAsyncTCP.cpp: In member function 'err_t AsyncServer::_poll(tcp_pcb*)': .pio/libdeps/d1_mini_lite/ESPAsyncTCP_ID305/src/ESPAsyncTCP.cpp:1324:31: error: no matching function for call to 'AsyncClient::_recv(tcp_pcb*&, pbuf*&, int)' c->_recv(pcb, p->pb, 0); ^ .pio/libdeps/d1_mini_lite/ESPAsyncTCP_ID305/src/ESPAsyncTCP.cpp:1324:31: note: candidate is: .pio/libdeps/d1_mini_lite/ESPAsyncTCP_ID305/src/ESPAsyncTCP.cpp:565:6: note: void AsyncClient::_recv(std::shared_ptr<ACErrorTracker>&, tcp_pcb*, pbuf*, err_t) void AsyncClient::_recv(std::shared_ptr<ACErrorTracker>& errorTracker, tcp_pcb* pcb, pbuf* pb, err_t err) { ^ .pio/libdeps/d1_mini_lite/ESPAsyncTCP_ID305/src/ESPAsyncTCP.cpp:565:6: note: candidate expects 4 arguments, 3 provided Compiling .pio/build/d1_mini_lite/lib489/AsyncMqttClient_ID346/AsyncMqttClient.cpp.o *** [.pio/build/d1_mini_lite/lib143/ESPAsyncTCP_ID305/ESPAsyncTCP.cpp.o] Error 1
To solve this, the platformio.ini needs to be modified, so the automatic library download will fetch a earlier version. I used ESPAsyncTCP version 1.2.0.
The lib_deps line should look like this: lib_deps = [email protected], ESPAsyncUDP, AsyncMqttClient, WifiManager, ArduinoJson