• 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

Build Web Servers AsyncTCP Errors Using PlatformIO

Q&A Forum › Category: ESP32 › Build Web Servers AsyncTCP Errors Using PlatformIO
0 Vote Up Vote Down
Kerry Jackson asked 4 months ago

.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

Question Tags: AsyncTCP
9 Answers
0 Vote Up Vote Down
Steve Mercer answered 4 months ago

I ran into this myself not so long ago. I had to modify the AsyncTCP.cpp file:
 
Change xTaskCreateUniversal to xTaskCreatePinnedToCore

0 Vote Up Vote Down
Kerry Jackson answered 4 months ago

How do I change this file 

0 Vote Up Vote Down
Steve Mercer answered 4 months ago

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”.

0 Vote Up Vote Down
Kerry Jackson answered 4 months ago

That did fix that problem, now it will not connect to wifi…. Using source code for Hello World. Page 157 of Build Web Servers.

0 Vote Up Vote Down
Sara Santos Staff answered 4 months ago

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

0 Vote Up Vote Down
Steve Mercer answered 4 months ago

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.

0 Vote Up Vote Down
Kerry Jackson answered 4 months ago

How can I get a external antenna 

0 Vote Up Vote Down
Steve Mercer answered 4 months ago

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.

0 Vote Up Vote Down
Sara Santos Staff answered 4 months ago

Hi.
Can you tell me what happens? Can you double-check your network credentials?
Can you try uploading the code with Arduino IDE and see if you get the same or a different result?
Regards,
Sara

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] Download Build Web Servers with ESP32 and ESP8266 (2nd Edition) February 8, 2021
  • [eBook Released] Build Web Servers with ESP32 and ESP8266 (version 1.0) October 27, 2020

You must be logged in to view this content.

Contact Support - Refunds - Privacy - Terms - MakerAdvisor.com - Member Login

Copyright © 2013-2021 · RandomNerdTutorials.com · All Rights Reserved