• 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

ESP32 Webserver

Q&A Forum › Category: ESP32 › ESP32 Webserver
0 Vote Up Vote Down
Dattatraya Apte asked 5 years ago

Dear Sir,

I was trying to create ESP32 BME280 / DS12B20 Async Web Server. but I was not able t compile the sketch. I am getting following message

“Error compiling for board DOIT ESP32 DEVKit V1”

How to resolve this problem

3 Answers
0 Vote Up Vote Down
Rui Santos Staff answered 5 years ago

Hello,

  • Do you have all the libraries installed?
  • Can you please check that you have the latest Arduino IDE?
  • Also check that the ESP32 board add-on and libraries are up to date

Does it compile now? If not, please post the full error message!
Thanks
 

0 Vote Up Vote Down
Dattatraya Apte answered 5 years ago

Thank You very much for your quick response.

I have installed All libraries.

I have latest Version of Arduino IDE

I have Installed ESP32 boards as instructed by you. but still I am getting this error. The message is as below –

"Arduino: 1.8.12 (Windows 10), Board: "DOIT ESP32 DEVKIT V1, 80MHz, 921600, None"

no protocol: //raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_index.json
Invalid library found in C:\Users\APTE\Documents\Arduino\libraries\audioutils: no headers files (.h) found in C:\Users\APTE\Documents\Arduino\libraries\audioutils
Invalid library found in C:\Users\APTE\Documents\Arduino\libraries\colorutils: no headers files (.h) found in C:\Users\APTE\Documents\Arduino\libraries\colorutils
Invalid library found in C:\Users\APTE\Documents\Arduino\libraries\datautils: no headers files (.h) found in C:\Users\APTE\Documents\Arduino\libraries\datautils
Invalid library found in C:\Users\APTE\Documents\Arduino\libraries\esp-who-master: no headers files (.h) found in C:\Users\APTE\Documents\Arduino\libraries\esp-who-master
Invalid library found in C:\Users\APTE\Documents\Arduino\libraries\esp32-camera-master: no headers files (.h) found in C:\Users\APTE\Documents\Arduino\libraries\esp32-camera-master
Invalid library found in C:\Users\APTE\Documents\Arduino\libraries\simutils: no headers files (.h) found in C:\Users\APTE\Documents\Arduino\libraries\simutils
Invalid library found in C:\Users\APTE\Documents\Arduino\libraries\verletphysics: no headers files (.h) found in C:\Users\APTE\Documents\Arduino\libraries\verletphysics
Invalid library found in C:\Users\APTE\Documents\Arduino\libraries\volumeutils: no headers files (.h) found in C:\Users\APTE\Documents\Arduino\libraries\volumeutils
C:\Users\APTE\Documents\Arduino\libraries\AsyncTCP-master\src\AsyncTCP.cpp:259:27: error: field 'call' has incomplete type 'tcpip_api_call'

struct tcpip_api_call call;

^

C:\Users\APTE\Documents\Arduino\libraries\AsyncTCP-master\src\AsyncTCP.cpp:259:12: note: forward declaration of 'struct tcpip_api_call'

struct tcpip_api_call call;

^

C:\Users\APTE\Documents\Arduino\libraries\AsyncTCP-master\src\AsyncTCP.cpp: In function 'esp_err_t _tcp_output(tcp_pcb*)':

C:\Users\APTE\Documents\Arduino\libraries\AsyncTCP-master\src\AsyncTCP.cpp:291:65: error: invalid conversion from 'err_t (*)(tcpip_api_call*) {aka signed char (*)(tcpip_api_call*)}' to 'tcpip_api_call_fn {aka signed char (*)(tcpip_api_call_data*)}' [-fpermissive]

tcpip_api_call(_tcp_output_api, (struct tcpip_api_call*)&msg);

^

C:\Users\APTE\Documents\Arduino\libraries\AsyncTCP-master\src\AsyncTCP.cpp:291:65: error: cannot convert 'tcpip_api_call*' to 'tcpip_api_call_data*' for argument '2' to 'err_t tcpip_api_call(tcpip_api_call_fn, tcpip_api_call_data*)'

C:\Users\APTE\Documents\Arduino\libraries\AsyncTCP-master\src\AsyncTCP.cpp:259:12: note: class type 'tcpip_api_call' is incomplete

struct tcpip_api_call call;

^

C:\Users\APTE\Documents\Arduino\libraries\AsyncTCP-master\src\AsyncTCP.cpp: In function 'esp_err_t _tcp_write(tcp_pcb*, const char*, size_t, uint8_t)':

C:\Users\APTE\Documents\Arduino\libraries\AsyncTCP-master\src\AsyncTCP.cpp:307:64: error: invalid conversion from 'err_t (*)(tcpip_api_call*) {aka signed char (*)(tcpip_api_call*)}' to 'tcpip_api_call_fn {aka signed char (*)(tcpip_api_call_data*)}' [-fpermissive]

tcpip_api_call(_tcp_write_api, (struct tcpip_api_call*)&msg);

^

C:\Users\APTE\Documents\Arduino\libraries\AsyncTCP-master\src\AsyncTCP.cpp:307:64: error: cannot convert 'tcpip_api_call*' to 'tcpip_api_call_data*' for argument '2' to 'err_t tcpip_api_call(tcpip_api_call_fn, tcpip_api_call_data*)'

C:\Users\APTE\Documents\Arduino\libraries\AsyncTCP-master\src\AsyncTCP.cpp:259:12: note: class type 'tcpip_api_call' is incomplete

struct tcpip_api_call call;

^

C:\Users\APTE\Documents\Arduino\libraries\AsyncTCP-master\src\AsyncTCP.cpp: In function 'esp_err_t _tcp_recved(tcp_pcb*, size_t)':

C:\Users\APTE\Documents\Arduino\libraries\AsyncTCP-master\src\AsyncTCP.cpp:322:65: error: invalid conversion from 'err_t (*)(tcpip_api_call*) {aka signed char (*)(tcpip_api_call*)}' to 'tcpip_api_call_fn {aka signed char (*)(tcpip_api_call_data*)}' [-fpermissive]

tcpip_api_call(_tcp_recved_api, (struct tcpip_api_call*)&msg);

^

C:\Users\APTE\Documents\Arduino\libraries\AsyncTCP-master\src\AsyncTCP.cpp:322:65: error: cannot convert 'tcpip_api_call*' to 'tcpip_api_call_data*' for argument '2' to 'err_t tcpip_api_call(tcpip_api_call_fn, tcpip_api_call_data*)'

C:\Users\APTE\Documents\Arduino\libraries\AsyncTCP-master\src\AsyncTCP.cpp:259:12: note: class type 'tcpip_api_call' is incomplete

struct tcpip_api_call call;

^

C:\Users\APTE\Documents\Arduino\libraries\AsyncTCP-master\src\AsyncTCP.cpp: In function 'esp_err_t _tcp_connect(tcp_pcb*, ip_addr_t*, uint16_t, tcp_connected_fn)':

C:\Users\APTE\Documents\Arduino\libraries\AsyncTCP-master\src\AsyncTCP.cpp:338:66: error: invalid conversion from 'err_t (*)(tcpip_api_call*) {aka signed char (*)(tcpip_api_call*)}' to 'tcpip_api_call_fn {aka signed char (*)(tcpip_api_call_data*)}' [-fpermissive]

tcpip_api_call(_tcp_connect_api, (struct tcpip_api_call*)&msg);

^

C:\Users\APTE\Documents\Arduino\libraries\AsyncTCP-master\src\AsyncTCP.cpp:338:66: error: cannot convert 'tcpip_api_call*' to 'tcpip_api_call_data*' for argument '2' to 'err_t tcpip_api_call(tcpip_api_call_fn, tcpip_api_call_data*)'

C:\Users\APTE\Documents\Arduino\libraries\AsyncTCP-master\src\AsyncTCP.cpp:259:12: note: class type 'tcpip_api_call' is incomplete

struct tcpip_api_call call;

^

C:\Users\APTE\Documents\Arduino\libraries\AsyncTCP-master\src\AsyncTCP.cpp: In function 'esp_err_t _tcp_close(tcp_pcb*)':

C:\Users\APTE\Documents\Arduino\libraries\AsyncTCP-master\src\AsyncTCP.cpp:352:64: error: invalid conversion from 'err_t (*)(tcpip_api_call*) {aka signed char (*)(tcpip_api_call*)}' to 'tcpip_api_call_fn {aka signed char (*)(tcpip_api_call_data*)}' [-fpermissive]

tcpip_api_call(_tcp_close_api, (struct tcpip_api_call*)&msg);

^

C:\Users\APTE\Documents\Arduino\libraries\AsyncTCP-master\src\AsyncTCP.cpp:352:64: error: cannot convert 'tcpip_api_call*' to 'tcpip_api_call_data*' for argument '2' to 'err_t tcpip_api_call(tcpip_api_call_fn, tcpip_api_call_data*)'

C:\Users\APTE\Documents\Arduino\libraries\AsyncTCP-master\src\AsyncTCP.cpp:259:12: note: class type 'tcpip_api_call' is incomplete

struct tcpip_api_call call;

^

C:\Users\APTE\Documents\Arduino\libraries\AsyncTCP-master\src\AsyncTCP.cpp: In function 'esp_err_t _tcp_abort(tcp_pcb*)':

C:\Users\APTE\Documents\Arduino\libraries\AsyncTCP-master\src\AsyncTCP.cpp:367:64: error: invalid conversion from 'err_t (*)(tcpip_api_call*) {aka signed char (*)(tcpip_api_call*)}' to 'tcpip_api_call_fn {aka signed char (*)(tcpip_api_call_data*)}' [-fpermissive]

tcpip_api_call(_tcp_abort_api, (struct tcpip_api_call*)&msg);

^

C:\Users\APTE\Documents\Arduino\libraries\AsyncTCP-master\src\AsyncTCP.cpp:367:64: error: cannot convert 'tcpip_api_call*' to 'tcpip_api_call_data*' for argument '2' to 'err_t tcpip_api_call(tcpip_api_call_fn, tcpip_api_call_data*)'

C:\Users\APTE\Documents\Arduino\libraries\AsyncTCP-master\src\AsyncTCP.cpp:259:12: note: class type 'tcpip_api_call' is incomplete

struct tcpip_api_call call;

^

C:\Users\APTE\Documents\Arduino\libraries\AsyncTCP-master\src\AsyncTCP.cpp: In function 'esp_err_t _tcp_bind(tcp_pcb*, ip_addr_t*, uint16_t)':

C:\Users\APTE\Documents\Arduino\libraries\AsyncTCP-master\src\AsyncTCP.cpp:382:63: error: invalid conversion from 'err_t (*)(tcpip_api_call*) {aka signed char (*)(tcpip_api_call*)}' to 'tcpip_api_call_fn {aka signed char (*)(tcpip_api_call_data*)}' [-fpermissive]

tcpip_api_call(_tcp_bind_api, (struct tcpip_api_call*)&msg);

^

C:\Users\APTE\Documents\Arduino\libraries\AsyncTCP-master\src\AsyncTCP.cpp:382:63: error: cannot convert 'tcpip_api_call*' to 'tcpip_api_call_data*' for argument '2' to 'err_t tcpip_api_call(tcpip_api_call_fn, tcpip_api_call_data*)'

C:\Users\APTE\Documents\Arduino\libraries\AsyncTCP-master\src\AsyncTCP.cpp:259:12: note: class type 'tcpip_api_call' is incomplete

struct tcpip_api_call call;

^

C:\Users\APTE\Documents\Arduino\libraries\AsyncTCP-master\src\AsyncTCP.cpp: In function 'tcp_pcb* _tcp_listen_with_backlog(tcp_pcb*, uint8_t)':

C:\Users\APTE\Documents\Arduino\libraries\AsyncTCP-master\src\AsyncTCP.cpp:397:65: error: invalid conversion from 'err_t (*)(tcpip_api_call*) {aka signed char (*)(tcpip_api_call*)}' to 'tcpip_api_call_fn {aka signed char (*)(tcpip_api_call_data*)}' [-fpermissive]

tcpip_api_call(_tcp_listen_api, (struct tcpip_api_call*)&msg);

^

C:\Users\APTE\Documents\Arduino\libraries\AsyncTCP-master\src\AsyncTCP.cpp:397:65: error: cannot convert 'tcpip_api_call*' to 'tcpip_api_call_data*' for argument '2' to 'err_t tcpip_api_call(tcpip_api_call_fn, tcpip_api_call_data*)'

C:\Users\APTE\Documents\Arduino\libraries\AsyncTCP-master\src\AsyncTCP.cpp:259:12: note: class type 'tcpip_api_call' is incomplete

struct tcpip_api_call call;

^

C:\Users\APTE\Documents\Arduino\libraries\AsyncTCP-master\src\AsyncTCP.cpp: At global scope:

C:\Users\APTE\Documents\Arduino\libraries\AsyncTCP-master\src\AsyncTCP.cpp:624:6: error: prototype for 'void AsyncClient::_dns_found(ip_addr_t*)' does not match any in class 'AsyncClient'

void AsyncClient::_dns_found(ip_addr_t *ipaddr){

^

In file included from C:\Users\APTE\Documents\Arduino\libraries\AsyncTCP-master\src\AsyncTCP.cpp:24:0:

C:\Users\APTE\Documents\Arduino\libraries\AsyncTCP-master\src\AsyncTCP.h:84:10: error: candidate is: void AsyncClient::_dns_found(_ip_addr*)

void _dns_found(struct _ip_addr *ipaddr);

^

C:\Users\APTE\Documents\Arduino\libraries\AsyncTCP-master\src\AsyncTCP.cpp:946:6: error: prototype for 'void AsyncClient::_s_dns_found(const char*, ip_addr_t*, void*)' does not match any in class 'AsyncClient'

void AsyncClient::_s_dns_found(const char * name, ip_addr_t * ipaddr, void * arg){

^

In file included from C:\Users\APTE\Documents\Arduino\libraries\AsyncTCP-master\src\AsyncTCP.cpp:24:0:

C:\Users\APTE\Documents\Arduino\libraries\AsyncTCP-master\src\AsyncTCP.h:164:17: error: candidate is: static void AsyncClient::_s_dns_found(const char*, _ip_addr*, void*)

static void _s_dns_found(const char *name, struct _ip_addr *ipaddr, void *arg);

^

Multiple libraries were found for "WiFi.h"
Used: C:\Users\APTE\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.4\libraries\WiFi
Not used: C:\Users\APTE\Downloads\arduino-1.8.12\libraries\WiFi
Not used: C:\Users\APTE\Documents\Arduino\libraries\WiFi-master
exit status 1
Error compiling for board DOIT ESP32 DEVKIT V1.

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences."

Kindly guide me to resolve this problem.

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

Hello again! According to that error message, it means that your AsyncTCP or ESPAsyncWebServer library is not updated to the latest version. Can you update those libraries?
Thanks!
Rui

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.