- Modify
cfg.toml
to match your environment for:- WiFi SSID and credentials
- server IP:port and endpoint
- client name
-
Install the
esp
rust toolchain and theespflash
utility:cargo install espup espup install cargo install espflash
-
Bring the toolchain installed this way into
PATH
:source ~/export-esp.sh
-
Build the firmware image:
cargo build --release
-
Flash the image onto a board:
espflash flash target/xtensa-esp32-none-elf/release/eos-sensor
-
Alternatively, use
espflash flash --monitor -L defmt target/xtensa-esp32-none-elf/release/eos-sensor
to flash the image and attach to the device to receive logging output.
cargo run
is also mapped to this command for more convenient access.