Rui or Sara;
Have you used the code in the tutorial in VS Code?
As I have commented twice before in the tutorial pages, I am OK if I used Arduino IDE 1.8.19. (Can’t use Arduino IDE Ver 2 for some reason).
But, Sara has convinced me to use VS Code as my development platform (with PlatformIO) and so far, I have been quite pleased with my experience with VS Code.
I am still exploring the vast quantity of technical material you publish on your web sites — it is mind-bending!
I am learning so much from your courses and tutorials and I’m having lots of fun doing it.
Thanks, as always for your support.
Ray
Hi
No, I didn’t test that code with VS Code.
What are exactly the issues that you get?
Regards,
Sara
Sara,
The problem I run into is the FauxmoESP library.
The tutorial shows how to install it in Arduino IDE Ver.1.8.
I was NOT able to get it to work with Arduino V2, although I did get it to work with Arduino 1.8!
Rui told me, (I believe), that the ESP32 is not usable yet in Arduino Ver. 2
So, after I succeeded with Arduino 1.8, I thought I’d use VS Code.
I wasn’t able to successfully install it in VS Code IDE Ver. 1.65 because I couldn’t figure out how to install the library.
The #include “fauxmoESP.h” statement fails.
I think all I need is the correct line in the “platform.ini” file (something like this “lib_deps = ESP Async Webserver”?
I’m not sure what to put in the place of the string “ESP Async Webserver” for the fauxmoESP library.
Thanks,
Ray
Hi.
The ESP32 is usable with Arduino 2.0. You can check out tutorial about it here: https://randomnerdtutorials.com/installing-esp32-arduino-ide-2-0/
However, there are some features that are not supported yet, like the filesystem uploader plugin.
To install a library in VS Code, click on the platformio IO home icon. Then, select libraries. Search for the library you want to use. Then, click on the desired library. Click Add to project and select the project you’re working on.
Do that same thing to include the AsyncTCP library.
I hope this helps.
Regards,
Sara
Sara,
I did not do a very good job of communicating regarding this issue.
I have no problem using Arduino IDE Ver. 2 with the ESP32 — I’ve done several small projects using Arduino Ver. 2.
My real issue is this: I can’t get VS Code to compile the code for the project I got from this tutorial:
“https://randomnerdtutorials.com/alexa-echo-with-esp32-and-esp8266/”
I did get it to work with Arduino IDE 1.8.
The library I need is downloaded using this link: “https://bitbucket.org/xoseperez/fauxmoesp/get/master.zip”.
After unzipping and renaming, you get this folder (xoseperez_fauxmoesp) which is what is supposed to be installed into VS Code!
THAT is my problem — I don’t know how to install “xoseperez_fauxmoesp” into VS Code!
The normal install of libraries using PlatformIO HOME-> Search yields “No Results”
I should mention this; I don’t have any interest in that portion of the tutorial dealing with anything other than the Alexa Echo device — no relay, no lights or anything else.
My only interest was in seeing what came back from the Echo resulting from my speaking to it things like:
“Alexa turn on light 1” (light 1 being the device name of that thing I added using the Alexa app.)
To put it simply; How do I install the fauxmoESP library?
Thanks,
Ray
Sara,
This is an update on my problem of trying to compile the Alexa ESP32 tutorial code with VS Code.
I managed to install the libraries I needed, and it compiled and ran successfully.
Here is the platformio.ini file resulting from the library install in the “Libraries” tab of the PIO Home page:
Start your code here
[env:esp32doit-devkit-v1]
platform = espressif32
board = esp32doit-devkit-v1
framework = arduino
monitor_speed = 115200
lib_deps =
me-no-dev/AsyncTCP@^1.1.1
vintlabs/FauxmoESP@^3.4
It now works well.
Thanks for your help.
Ray