.pio\libdeps\esp32doit-devkit-v1\AsyncTCP\src\AsyncTCP.cpp: In function ‘bool _start_async_task()’:
.pio\libdeps\esp32doit-devkit-v1\AsyncTCP\src\AsyncTCP.cpp:218: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);
^
*** [.pio\build\esp32doit-devkit-v1\lib5f9\AsyncTCP\AsyncTCP.cpp.o] Error 1
I ran into this myself not so long ago. I had to modify the AsyncTCP.cpp file:
Change xTaskCreateUniversal to xTaskCreatePinnedToCore
The location of the file will be dependent on your OS and where you have installed your libraries.
There may be clues in the error messages. For PlatformIO there is a separate library in each project.
For me the easiest way to find the file is right click (In VS Code) the line “#include <AsyncTCP.h>” and select the option “Go to Definition”. This should open the file “AsyncTCP.h”. In this file right click anywhere and select “Switch Header/Source”. This should open “AsyncTCP.cpp”.
That did fix that problem, now it will not connect to wifi…. Using source code for Hello World. Page 157 of Build Web Servers.
Hi.
When you say it doesn’t connect, what happens exactly?
Can you open the serial monitor and see what’s going on?
Regards,
Sara
Perhaps your ESP32 is not close enough to your router? The built-in antenna is for very short range connections. In my case I am 10 feet away from my router through two walls and it only just connects. Any further and I get nothing.
It somewhat depends on how the antenna connects to your board. For mine I got this Antenna from Amazon. The biggest issue is moving the TINY zero ohm resistor from one set of pads to another. It’s SLIGHTLY easier just to put a solder bridge.