C:\Users\Edson\Documents\Arduino\hardware\espressif\esp32\libraries\AsyncTCP\src\AsyncTCP.cpp:259:32: error: field 'call' has incomplete type 'tcpip_api_call_data' struct tcpip_api_call_data call; C:\Users\Edson\Documents\Arduino\hardware\espressif\esp32\libraries\AsyncTCP\src\AsyncTCP.cpp: In function 'esp_err_t _tcp_recved(tcp_pcb*, size_t)': C:\Users\Edson\Documents\Arduino\hardware\espressif\esp32\libraries\AsyncTCP\src\AsyncTCP.cpp:326:70: error: invalid conversion from 'err_t (*)(tcpip_api_call_data*) {aka signed char (*)(tcpip_api_call_data*)}' to 'tcpip_api_call_fn {aka signed char (*)(tcpip_api_call*)}' [-fpermissive] tcpip_api_call(_tcp_recved_api, (struct tcpip_api_call_data*)&msg); ^ C:\Users\Edson\Documents\Arduino\hardware\espressif\esp32\libraries\AsyncTCP\src\AsyncTCP.cpp:326:70: error: cannot convert 'tcpip_api_call_data*' to 'tcpip_api_call*' for argument '2' to 'err_t tcpip_api_call(tcpip_api_call_fn, tcpip_api_call*)'
It looks like you’re using an outdated version of the AsyncTCP library.
- Can you double-check that you’re using the latest libraries?
- Which code are you trying to compile?
You have the download link for the updated version?
Program: Asynchronous web server that displays temperature and humidity from DHT11 or DHT22 sensors.
Thanks for letting me know, I just wanted to double-check that we were talking about the same project.
The error that you’re having means that you’re using an older version of the AsyncTCP library (that you already had installed): https://github.com/me-no-dev/ESPAsyncWebServer/issues/464
I recommend removing any older version of the libraries. Then, re-install the libraries to ensure that you’re using the latest versions: https://rntlab.com/asynchronous-temperature-and-humidity-web-server-with-auto-update/
Deleting the old libraries will allow your code to compile successfully.