This repository was archived by the owner on Jan 20, 2025. It is now read-only.
This repository was archived by the owner on Jan 20, 2025. It is now read-only.
AsyncTCP will not compile on older versions of ESP32 toolchain #100
Closed
Description
AsyncTCP.cpp:226:59: error: 'xTaskCreateUniversal' was not declared in this scope
&_async_service_task_handle, CONFIG_ASYNC_TCP_RUNNING_CORE);
This error occurs on toolchain 1.0.3 and below. This can be worked around by updating the toolchain, but toolchain installs might not be updatable on educational lab machines.
A better permanent fix would be to look at xTaskCreateUniversal and notice it calls xTaskCreate every time with the #define parameter CONFIG_ASYNC_TCP_RUNNING_CORE which is set to -1.
Switching to xTaskCreate would resolve the issue in older toolchains and be consistent with current builds.