Skip to content
This repository has been archived by the owner on Dec 17, 2020. It is now read-only.

Build fails with latest ESPAsyncTCP version #1

Open
pmalsenz opened this issue Nov 2, 2019 · 1 comment
Open

Build fails with latest ESPAsyncTCP version #1

pmalsenz opened this issue Nov 2, 2019 · 1 comment

Comments

@pmalsenz
Copy link

pmalsenz commented Nov 2, 2019

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 = ESPAsyncTCP@1.2.0, ESPAsyncUDP, AsyncMqttClient, WifiManager, ArduinoJson

I've attached my version of platformio.ini as zip.
platformio-ini.zip

@jeroenst
Copy link

jeroenst commented Jul 6, 2020

Use this pull request to solve problem: me-no-dev/ESPAsyncTCP#129

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants