• 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

Include files not found

Q&A Forum › Category: ESP8266 › Include files not found
0 Vote Up Vote Down
Daniel Essin asked 4 years ago

Hello,
I’m working through the web tutorial and have arrived at page 176.
I have added
[env:esp12e]
platform = espressif8266
board = esp12e
framework = arduino
monitor_speed = 115200
lib_deps = ESP Async WebServer
board_build.filesystem = littlefs
to the platformio.ini file.
Also AsyncTCP
The include entries both have red wavy underlines.
I added the libraries using the PIO Libraries feature.

#include <ESPAsyncTCP.h>
#include <ESPAsyncWebServer.h>

 
(btw – the tutorial does not actually address the need/process for adding these libraries. It makes it seem that simply adding the include lines to the code is sufficient)
 

 
Since I always used the Arduino Studio up until now, I am completely lost as to what to do next.

Help would be appreciated.

Question Tags: dependencies
3 Answers
0 Vote Up Vote Down
Sara Santos Staff answered 4 years ago

Hi Daniel.

I’m sorry for that issue.

In your platformio.ini file, the following line includes the library:

lib_deps = ESP Async WebServer

So, it shouldn’t complain about not finding the libraries

Your platformio.ini file should look like this:

[env:esp12e]
platform = espressif8266
board = esp12e
framework = arduino
monitor_speed = 115200
lib_deps = ESP Async WebServer
board_build.filesystem = littlefs

Can you double-check the platformio.ini file of your project again?

If you upload/compile the code, what happens?

Regards,
Sara

0 Vote Up Vote Down
Daniel Essin answered 4 years ago

Hi,
I’ve give up on platformio and I’m switching to micropython.
uPyCraft ide is awfully clunky and parts of it don’t work.
I’ve gotten some success with Thonny after I restructured the webserver code from the uPyCraft example .
The Thonny tutorial needs some work because the new version has elimimated the Device menu and moved the commands around.
Thanks

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

Hi Daniel.
 
Working with VS Code might be challenging at first, but then, you’ll see that it works great.
 
Thonny IDE updated their menus, so we also need to update the instructions. I’m still trying to find a better IDE for micropython, but those two were the best we could find, at the moment.
Alternatively, you can write micropython code in any text editor and then upload the files via Terminal using ampy.
 
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.