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
Hi.
What project are you following?
You need to install the AsyncTCP and ESPAsyncWebServer libraries. Did you do that?
Regards,
Sara
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
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
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
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