Get esp idf https://docs.espressif.com/projects/esp-idf/en/latest/esp32/get-started/linux-macos-setup.html#get-started-get-esp-idf
follow the esp rust book https://esp-rs.github.io/book/writing-your-own-application/generate-project/index.html
Which board do I have ? ESP32-s ???
WIFI esp wifi https://docs.espressif.com/projects/esp-idf/en/latest/esp32/api-reference/network/esp_wifi.html and https://medium.com/@rajeshpachaikani/connect-esp32-to-wifi-with-rust-7d12532f539b with the config cf.toml from https://github.com/esp-rs/std-training/tree/main/intro/http-server
HTTP Client https://esp-rs.github.io/std-training/03_3_2_http_client.html https://github.com/esp-rs/std-training/blob/main/intro/http-client/src/main.rs
This repository offers Dev Containers supports for:
Note
In order to use GitHub Codespaces the project needs to be published in a GitHub repository and the user needs to be part of the Codespaces beta or have the project under an organization.
If using VS Code or GitHub Codespaces, you can pull the image instead of building it
from the Dockerfile by selecting the image property instead of build in
.devcontainer/devcontainer.json. Further customization of the Dev Container can
be achived, see .devcontainer.json reference.
When using Dev Containers, some tooling to facilitate building, flashing and simulating in Wokwi is also added.
Terminal approach:
scripts/build.sh [debug | release]
If no argument is passed,
releasewill be used as default
UI approach:
The default build task is already set to build the project, and it can be used in VS Code and GitHub Codespaces:
Ctrl-Shift-P or Cmd-Shift-P) run the Tasks: Run Build Task command.Terminal-> Run Build Task in the menu.Ctrl-Shift-B or Cmd-Shift-B.Ctrl-Shift-P or Cmd-Shift-P) run the Tasks: Run Task command and
select Build.Build on the left side of the Status Bar.Note
When using GitHub Codespaces, we need to make the ports public, see instructions.
Using flash.sh script:
scripts/flash.sh [debug | release]
If no argument is passed,
releasewill be used as default
Ctrl-Shift-P or Cmd-Shift-P) run the Tasks: Run Task command and
select Build & Flash.Build & Flash on the left side of the Status Bar.The Dev Container includes the Wokwi Vs Code installed, hence you can simulate your built projects doing the following:
F1Wokwi: Start SimulatorNote
We assume that the project is built in
debugmode, if you want to simulate projects in release, please update theelfandfirmwareproprieties inwokwi.toml.
For more information and details on how to use the Wokwi extension, see Getting Started and Debugging your code Chapter of the Wokwi documentation.