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