• 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

File path problem

Q&A Forum › Category: ESP32 › File path problem
0 Vote Up Vote Down
Tom Barth asked 2 years ago

Hi Sara,
I’m having trouble getting started with the HelloWorld web server.  I cannot locate the header files:

#include <WiFi.h>
#include <AsyncTCP.h>
#include <ESPAsyncWebServer.h>
 

<Arduino.h> seems to be available.  Did I get a path mixed up somewhere in the installation?
 
Thanks for any help,
Tom
 

5 Answers
0 Vote Up Vote Down
Sara Santos Staff answered 2 years ago

Hi.
What project are you following?
You need to install the AsyncTCP and ESPAsyncWebServer libraries. Did you do that?
Regards,
Sara

0 Vote Up Vote Down
Tom Barth answered 2 years ago

Hi Sara,
Thanks for getting back to me.  I am working on the 1_1_Hello_World_WS example from the book.  I seem to have a Path problem with the compiler not finding some header files.  The libraries you mention have been installed.
The error I receive is:
.pio\libdeps\mkrwifi1010\ESP Async WebServer\src\AsyncEventSource.h:27:10: fatal error: ESPAsyncTCP.h: No such file or directory
In the project I have:
C:\Users\tomba\OneDrive\Documents\PlatformIO\Projects\1_1_Hello_World_WS\.pio\libdeps\mkrwifi1010\ESPAsyncTCP\src\ESPAsyncTCP.h
Did I install the libraries incorrectly so that they are on the wrong path?  
Thanks for any help.
Regards,
Tom
 

0 Vote Up Vote Down
Sara Santos Staff answered 2 years ago

Hi.
 
What process did you use to install the library? What board are you using? Are you using an ESP8266 board?
Try to do as follows:

  • Click the Home icon to go to PlatformIO Home. Click on the Libraries icon on the left side bar.
  • Search for the library you want to install. In this case,  ESPAsyncTCP.
  • Click on the ESPAsyncTCP library (you need to scroll down a bit).
  • Then, click on the Add to Project button and select the project you’re working on.
  • Open your platformio.ini file and save it.
  • Try to compile the code again.

 
Let me know the results.
 
Regards,
Sara
 
 
 
 

0 Vote Up Vote Down
Tom Barth answered 2 years ago

Hi Sara,
Thanks for the help with this.  I seem to have the library problems solved.  I went back and downloaded your complete project code.  The code compiles correctly now.  However, when trying to upload to the Arduino MKRwifi1010 I get the following message:
File “C:\Users\tomba\.platformio\penv\lib\site-packages\serial\serialwin32.py”, line 325, in write
raise SerialTimeoutException(‘Write timeout’)
serial.serialutil.SerialTimeoutException: Write timeout
*** [upload] Error 1
================================ [FAILED] Took 19.57 seconds ================================
I uninstalled and re-installed the Python code but got the same results.  I have successfully programmed this device with your Blink program and also with the Arduino IDE in the past.  I rebooted the computer.  Can you help me with this please?
Thank you,
Tom

0 Vote Up Vote Down
Sara Santos Staff answered 2 years ago

Hi.
I’m not familiar with that board.
Which board did you select when you created your project in VS Code?
It seems it is not able to establish a serial connection with your specific board.
What does your platformio.ini file look like?
I’m not sure that board is totally compatible with “regular” ESP32 boards… but I can’t be sure.
 
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

  • [New Edition] Build ESP32-CAM Projects eBook – 2nd Edition April 16, 2025
  • [eBook Updated] Learn ESP32 with Arduino IDE eBook – Version 3.2 April 16, 2025

You must be logged in to view this content.

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

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

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.