Giter Site home page Giter Site logo

Comments (6)

elfege avatar elfege commented on July 17, 2024

Thank you for sending us to a different page where they already talk about this issue, except it is for PlatformIO IDE and here we're stuck with an Arduino IDE problem... How do we get this fixed in Arduino ? Any idea ?

from asynctcp.

Anders-McLean avatar Anders-McLean commented on July 17, 2024

I'm having the same issue when trying to use AsyncTCP with Arduino IDE.

from asynctcp.

elfege avatar elfege commented on July 17, 2024

I figured it out. Install / delete your old core and install the latest version. It is now directly at bailable through IDE board management. No need to go through the whole script/shell again.

from asynctcp.

ctshh avatar ctshh commented on July 17, 2024

I figured it out. Install / delete your old core and install the latest version. It is now directly at bailable through IDE board management. No need to go through the whole script/shell again.

+1 here. Thanks!

from asynctcp.

Wzdforever avatar Wzdforever commented on July 17, 2024

this question is still bother me

from asynctcp.

Wzdforever avatar Wzdforever commented on July 17, 2024

Arduino:1.8.10 (Windows 10), 开发板:"ESP-32F, 80MHz, 921600"

N:\arduino\hardware\arduino-esp32\esp32\libraries\AsyncTCP\src\AsyncTCP.cpp:84:37: error: 'CONFIG_LWIP_MAX_ACTIVE_TCP' was not declared in this scope

const int _number_of_closed_slots = CONFIG_LWIP_MAX_ACTIVE_TCP;

                                 ^

N:\arduino\hardware\arduino-esp32\esp32\libraries\AsyncTCP\src\AsyncTCP.cpp:85:54: error: size of array '_closed_slots' is not an integral constant-expression

static uint32_t _closed_slots[_number_of_closed_slots];

                                                  ^

N:\arduino\hardware\arduino-esp32\esp32\libraries\AsyncTCP\src\AsyncTCP.cpp: In function 'void _handle_async_event(lwip_event_packet_t*)':

N:\arduino\hardware\arduino-esp32\esp32\libraries\AsyncTCP\src\AsyncTCP.cpp:183:68: error: no matching function for call to 'AsyncClient::_s_dns_found(const char*&, ip_addr_t*, void*&)'

     AsyncClient::_s_dns_found(e->dns.name, &e->dns.addr, e->arg);

                                                                ^

In file included from N:\arduino\hardware\arduino-esp32\esp32\libraries\AsyncTCP\src\AsyncTCP.cpp:24:0:

N:\arduino\hardware\arduino-esp32\esp32\libraries\AsyncTCP\src\AsyncTCP.h:137:17: note: candidate: 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);

             ^

N:\arduino\hardware\arduino-esp32\esp32\libraries\AsyncTCP\src\AsyncTCP.h:137:17: note: no known conversion for argument 2 from 'ip_addr_t* {aka _ip_addr*}' to 'ip_addr*'

N:\arduino\hardware\arduino-esp32\esp32\libraries\AsyncTCP\src\AsyncTCP.cpp: In function 'void _async_service_task(void*)':

N:\arduino\hardware\arduino-esp32\esp32\libraries\AsyncTCP\src\AsyncTCP.cpp:193:37: error: 'esp_task_wdt_add' was not declared in this scope

         if(esp_task_wdt_add(NULL) != ESP_OK){

                                 ^

N:\arduino\hardware\arduino-esp32\esp32\libraries\AsyncTCP\src\AsyncTCP.cpp:199:40: error: too many arguments to function 'void esp_task_wdt_delete()'

         if(esp_task_wdt_delete(NULL) != ESP_OK){

                                    ^

In file included from N:\arduino\hardware\arduino-esp32\esp32\libraries\AsyncTCP\src\AsyncTCP.cpp:32:0:

N:\arduino\hardware\arduino-esp32\esp32/tools/sdk/include/esp32/esp_task_wdt.h:61:6: note: declared here

void esp_task_wdt_delete();

  ^

In file included from N:\arduino\hardware\arduino-esp32\esp32/tools/sdk/include/esp32/esp_system.h:20:0,

             from N:\arduino\hardware\arduino-esp32\esp32\cores\esp32/esp32-hal.h:62,

             from N:\arduino\hardware\arduino-esp32\esp32\cores\esp32/Arduino.h:35,

             from N:\arduino\hardware\arduino-esp32\esp32\libraries\AsyncTCP\src\AsyncTCP.cpp:22:

N:\arduino\hardware\arduino-esp32\esp32/tools/sdk/include/esp32/esp_err.h:28:25: error: invalid operands of types 'void' and 'int' to binary 'operator!='

#define ESP_OK 0

                     ^

N:\arduino\hardware\arduino-esp32\esp32\libraries\AsyncTCP\src\AsyncTCP.cpp:199:45: note: in expansion of macro 'ESP_OK'

         if(esp_task_wdt_delete(NULL) != ESP_OK){

                                         ^

N:\arduino\hardware\arduino-esp32\esp32\libraries\AsyncTCP\src\AsyncTCP.cpp: In function 'bool _start_async_task()':

N:\arduino\hardware\arduino-esp32\esp32\libraries\AsyncTCP\src\AsyncTCP.cpp:221:141: error: 'xTaskCreateUniversal' was not declared in this scope

     xTaskCreateUniversal(_async_service_task, "async_tcp", 8192 * 2, NULL, 3, &_async_service_task_handle, CONFIG_ASYNC_TCP_RUNNING_CORE);

                                                                                                                                         ^

N:\arduino\hardware\arduino-esp32\esp32\libraries\AsyncTCP\src\AsyncTCP.cpp: In function 'void _tcp_dns_found(const char*, ip_addr*, void*)':

N:\arduino\hardware\arduino-esp32\esp32\libraries\AsyncTCP\src\AsyncTCP.cpp:322:59: error: invalid application of 'sizeof' to incomplete type 'ip_addr'

     memcpy(&e->dns.addr, ipaddr, sizeof(struct ip_addr));

                                                       ^

N:\arduino\hardware\arduino-esp32\esp32\libraries\AsyncTCP\src\AsyncTCP.cpp: At global scope:

N:\arduino\hardware\arduino-esp32\esp32\libraries\AsyncTCP\src\AsyncTCP.cpp:350:32: error: field 'call' has incomplete type 'tcpip_api_call_data'

 struct tcpip_api_call_data call;

                            ^

N:\arduino\hardware\arduino-esp32\esp32\libraries\AsyncTCP\src\AsyncTCP.cpp:350:12: note: forward declaration of 'struct tcpip_api_call_data'

 struct tcpip_api_call_data call;

        ^

N:\arduino\hardware\arduino-esp32\esp32\libraries\AsyncTCP\src\AsyncTCP.cpp: In function 'esp_err_t _tcp_output(tcp_pcb*, int8_t)':

N:\arduino\hardware\arduino-esp32\esp32\libraries\AsyncTCP\src\AsyncTCP.cpp:390: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_output_api, (struct tcpip_api_call_data*)&msg);

                                                                  ^

N:\arduino\hardware\arduino-esp32\esp32\libraries\AsyncTCP\src\AsyncTCP.cpp:390: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*)'

N:\arduino\hardware\arduino-esp32\esp32\libraries\AsyncTCP\src\AsyncTCP.cpp:350:12: note: class type 'tcpip_api_call_data' is incomplete

 struct tcpip_api_call_data call;

        ^

N:\arduino\hardware\arduino-esp32\esp32\libraries\AsyncTCP\src\AsyncTCP.cpp: In function 'esp_err_t _tcp_write(tcp_pcb*, int8_t, const char*, size_t, uint8_t)':

N:\arduino\hardware\arduino-esp32\esp32\libraries\AsyncTCP\src\AsyncTCP.cpp:413:69: 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_write_api, (struct tcpip_api_call_data*)&msg);

                                                                 ^

N:\arduino\hardware\arduino-esp32\esp32\libraries\AsyncTCP\src\AsyncTCP.cpp:413:69: 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*)'

N:\arduino\hardware\arduino-esp32\esp32\libraries\AsyncTCP\src\AsyncTCP.cpp:350:12: note: class type 'tcpip_api_call_data' is incomplete

 struct tcpip_api_call_data call;

        ^

N:\arduino\hardware\arduino-esp32\esp32\libraries\AsyncTCP\src\AsyncTCP.cpp: In function 'esp_err_t _tcp_recved(tcp_pcb*, int8_t, size_t)':

N:\arduino\hardware\arduino-esp32\esp32\libraries\AsyncTCP\src\AsyncTCP.cpp:435: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);

                                                                  ^

N:\arduino\hardware\arduino-esp32\esp32\libraries\AsyncTCP\src\AsyncTCP.cpp:435: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*)'

N:\arduino\hardware\arduino-esp32\esp32\libraries\AsyncTCP\src\AsyncTCP.cpp:350:12: note: class type 'tcpip_api_call_data' is incomplete

 struct tcpip_api_call_data call;

        ^

N:\arduino\hardware\arduino-esp32\esp32\libraries\AsyncTCP\src\AsyncTCP.cpp: In function 'esp_err_t _tcp_close(tcp_pcb*, int8_t)':

N:\arduino\hardware\arduino-esp32\esp32\libraries\AsyncTCP\src\AsyncTCP.cpp:455:69: 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_close_api, (struct tcpip_api_call_data*)&msg);

                                                                 ^

N:\arduino\hardware\arduino-esp32\esp32\libraries\AsyncTCP\src\AsyncTCP.cpp:455:69: 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*)'

N:\arduino\hardware\arduino-esp32\esp32\libraries\AsyncTCP\src\AsyncTCP.cpp:350:12: note: class type 'tcpip_api_call_data' is incomplete

 struct tcpip_api_call_data call;

        ^

N:\arduino\hardware\arduino-esp32\esp32\libraries\AsyncTCP\src\AsyncTCP.cpp: In function 'esp_err_t _tcp_abort(tcp_pcb*, int8_t)':

N:\arduino\hardware\arduino-esp32\esp32\libraries\AsyncTCP\src\AsyncTCP.cpp:475:69: 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_abort_api, (struct tcpip_api_call_data*)&msg);

                                                                 ^

N:\arduino\hardware\arduino-esp32\esp32\libraries\AsyncTCP\src\AsyncTCP.cpp:475:69: 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*)'

N:\arduino\hardware\arduino-esp32\esp32\libraries\AsyncTCP\src\AsyncTCP.cpp:350:12: note: class type 'tcpip_api_call_data' is incomplete

 struct tcpip_api_call_data call;

        ^

N:\arduino\hardware\arduino-esp32\esp32\libraries\AsyncTCP\src\AsyncTCP.cpp: In function 'esp_err_t _tcp_connect(tcp_pcb*, int8_t, ip_addr_t*, uint16_t, tcp_connected_fn)':

N:\arduino\hardware\arduino-esp32\esp32\libraries\AsyncTCP\src\AsyncTCP.cpp:495:71: 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_connect_api, (struct tcpip_api_call_data*)&msg);

                                                                   ^

N:\arduino\hardware\arduino-esp32\esp32\libraries\AsyncTCP\src\AsyncTCP.cpp:495:71: 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*)'

N:\arduino\hardware\arduino-esp32\esp32\libraries\AsyncTCP\src\AsyncTCP.cpp:350:12: note: class type 'tcpip_api_call_data' is incomplete

 struct tcpip_api_call_data call;

        ^

N:\arduino\hardware\arduino-esp32\esp32\libraries\AsyncTCP\src\AsyncTCP.cpp: In function 'esp_err_t _tcp_bind(tcp_pcb*, ip_addr_t*, uint16_t)':

N:\arduino\hardware\arduino-esp32\esp32\libraries\AsyncTCP\src\AsyncTCP.cpp:514:68: 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_bind_api, (struct tcpip_api_call_data*)&msg);

                                                                ^

N:\arduino\hardware\arduino-esp32\esp32\libraries\AsyncTCP\src\AsyncTCP.cpp:514:68: 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*)'

N:\arduino\hardware\arduino-esp32\esp32\libraries\AsyncTCP\src\AsyncTCP.cpp:350:12: note: class type 'tcpip_api_call_data' is incomplete

 struct tcpip_api_call_data call;

        ^

N:\arduino\hardware\arduino-esp32\esp32\libraries\AsyncTCP\src\AsyncTCP.cpp: In function 'tcp_pcb* _tcp_listen_with_backlog(tcp_pcb*, uint8_t)':

N:\arduino\hardware\arduino-esp32\esp32\libraries\AsyncTCP\src\AsyncTCP.cpp:533: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_listen_api, (struct tcpip_api_call_data*)&msg);

                                                                  ^

N:\arduino\hardware\arduino-esp32\esp32\libraries\AsyncTCP\src\AsyncTCP.cpp:533: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*)'

N:\arduino\hardware\arduino-esp32\esp32\libraries\AsyncTCP\src\AsyncTCP.cpp:350:12: note: class type 'tcpip_api_call_data' is incomplete

 struct tcpip_api_call_data call;

        ^

N:\arduino\hardware\arduino-esp32\esp32\libraries\AsyncTCP\src\AsyncTCP.cpp: In member function 'void AsyncClient::_dns_found(ip_addr*)':

N:\arduino\hardware\arduino-esp32\esp32\libraries\AsyncTCP\src\AsyncTCP.cpp:981:24: error: invalid use of incomplete type 'struct ip_addr'

 if(ipaddr && ipaddr->u_addr.ip4.addr){

                    ^

In file included from N:\arduino\hardware\arduino-esp32\esp32\libraries\AsyncTCP\src\AsyncTCP.cpp:24:0:

N:\arduino\hardware\arduino-esp32\esp32\libraries\AsyncTCP\src\AsyncTCP.h:53:8: note: forward declaration of 'struct ip_addr'

struct ip_addr;

    ^

N:\arduino\hardware\arduino-esp32\esp32\libraries\AsyncTCP\src\AsyncTCP.cpp:982:33: error: invalid use of incomplete type 'struct ip_addr'

     connect(IPAddress(ipaddr->u_addr.ip4.addr), _connect_port);

                             ^

In file included from N:\arduino\hardware\arduino-esp32\esp32\libraries\AsyncTCP\src\AsyncTCP.cpp:24:0:

N:\arduino\hardware\arduino-esp32\esp32\libraries\AsyncTCP\src\AsyncTCP.h:53:8: note: forward declaration of 'struct ip_addr'

struct ip_addr;

from asynctcp.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.