PlatformIO
Run the Vertices SDK on the ESP32 using PlatformIO.
Last updated
Run the Vertices SDK on the ESP32 using PlatformIO.
Last updated
PlatformIO provides great tools to easily get started with your development board. As we want the SDK to be easily accessible, we made it a PlatformIO library.
PIO is running on top of VSCode so make sure to have VSCode and install PlatformIO.
If you've downloaded the source from Github, the easiest way to get started is to open the example available ๐
On VSCode, go to the PlatformIO tab > open a project (PIO Home > Open > Open Project) and open the example at that location:
You will then need to fetch the dependencies such as the Espressif Framework. Click on the build
button to get the packages and then, head to the Configure paragraph as we have some configuration to be made. ๐
If you have created a project using PlatformIO, you will only need to install the library.
Go to the Libraries tab and search for vertices-sdk
. You should find the library in its latest version, click Add to Project, and select your project
You can then use the files provided in the Examples tab to easily get started.
The example provided with the SDK is based on a WiFi example so you need to configure the WiFi credentials to have the board connect to the Internet.
From PlatformIO > Project Tasks > esp32-example > Platform
, click on Run Menuconfig
. If you don't have the Platform
tab, it probably means that you didn't install the Espressif32 platform yet. Try to build
the project to force PlatformIO to get the packages.
You'll then be able to set the WiFi router SSID and password. Navigate to Example Connection configuration
> WiFi SSID
and WiFi Password
to set the parameters. Then save ( type S
) and exit (Q
).
You should now be able to build and run the example using Build
, Upload
and Monitor
buttons.
Once built, you'll be able to monitor the example using the Monitor button on PlatformIO. A terminal will then be opened and the serial interface will be printed: