Skip to content

add AsyncTCP as a component for esp-idf 5.3.3 #55

@ngowangvinh

Description

@ngowangvinh

IDE / Tooling

ESP-IDF

What happened?

add AysncTCP version 3.4.0 as component using ESP Component Registry to ESP-IDF 5.3.3 in vscode.
Build with error:
E:/ESP_IDF/ClockOS/managed_components/esp32async__asynctcp/src/AsyncTCP.cpp:15:10: fatal error: esp_timer.h: No such file or directory
15 | #include "esp_timer.h"

I fixed by change code of CMakeList.txt. Delete all and write new code to it:

idf_component_register(
    SRCS "src/AsyncTCP.cpp"
    INCLUDE_DIRS "src"
    REQUIRES esp_timer
)

target_compile_options(${COMPONENT_TARGET} PRIVATE -fno-rtti)

Stack Trace

E:/ESP_IDF/ClockOS/managed_components/esp32async__asynctcp/src/AsyncTCP.cpp:15:10: fatal error: esp_timer.h: No such file or directory
15 | #include "esp_timer.h"

Minimal Reproductible Example (MRE)

just add to esp-idf as component and build

I confirm that:

  • I have read the documentation.
  • I have searched for similar discussions.
  • I have searched for similar issues.
  • I have looked at the examples.
  • I have upgraded to the lasted version of AsyncTCP.

Metadata

Metadata

Labels

Type: BugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions