This guide shows how to sign up with Toit, install the Toit firmware on your ESP32, setup your local development environment, and finally how to deploy a Toit app on your ESP32 over-the-air.
At toit.io, click the Start Now button to create a free Toit account.
If you already have an ESP32 available, jump to step 3 to continue. Otherwise, you can buy one here.
To install the latest Toit firmware on your ESP32, connect the ESP32 with a USB cable to your computer.
Go to the Serial page in the Toit console to initially provision your ESP32 with the Toit firmware and WiFi settings - note that it only works in Google Chrome and Microsoft Edge browsers.
Your device has now been added to your Toit project. Only users with access to the same Toit project can communicate with the device via the Toit cloud.
When your device is online, all device communication will be over-the-air.
Download and install the Toit development environment here.
You can either run a Toit program once on your ESP32 or deploy the same Toit program as a long-lived application.
First, create a project folder and save the following Toit code in a file named
hello.toit using Visual Studio Code.
Save the following yaml code in a file named
hello.yaml and place it in the same folder as the
hello.toit file from above:
# Save as hello.yaml name: "HelloApp" entrypoint: hello.toit triggers: on_boot: true on_install: true
Deploying a Toit app on your device means that the Toit code in the
toit file will be executed repeatedly according to the scheduling defined in
In this case, when the app is installed on the device and if the device reboots.
When deploying an app, the device is not required to be online. The app will be installed on the device when it comes online.
Go to the Apps tab in the Toit console of your device to view the list of deployed apps.
Go to the Logs tab in the Toit console of your device to view the logs from the device.
Go to the Apps tab in the Toit console of your device to uninstall the app using the uninstall button.