• Skip to main content
  • Skip to primary sidebar

RNTLab.com

The Ultimate Shortcut to Learn Electronics and Programming with Open Source Hardware and Software

  • Courses
  • Forum
    • Forum
    • Ask Question
  • Shop
  • Account
  • Blog
  • Login

Web Server compilation error

Q&A Forum › Category: ESP32 › Web Server compilation error
0 Vote Up Vote Down
edson-pimenta asked 6 years ago
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*)'
5 Answers
0 Vote Up Vote Down
Rui Santos Staff answered 6 years ago

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?
0 Vote Up Vote Down
edson-pimenta answered 6 years ago

You have the download link for the updated version?

Program: Asynchronous web server that displays temperature and humidity from DHT11 or DHT22 sensors.

0 Vote Up Vote Down
Rui Santos Staff answered 6 years ago

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.

0 Vote Up Vote Down
edson-pimenta answered 6 years ago

I’ve never had such a fast support.

Thank you.

0 Vote Up Vote Down
Rui Santos Staff answered 6 years ago

You’re welcome!

Primary Sidebar

Login to Ask or Answer Questions

This Forum is private and it’s only available for members enrolled in our Courses.

Login »

Latest Course Updates

  • [eBook Updated] Learn Raspberry Pi Pico/Pico W with MicroPython eBook – Version 1.2 May 26, 2025
  • [New Edition] Build ESP32-CAM Projects eBook – 2nd Edition April 16, 2025

You must be logged in to view this content.

Contact Support - Refunds - Privacy - Terms - MakerAdvisor.com - Member Login

Copyright © 2013-2025 · RandomNerdTutorials.com · All Rights Reserved

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.