- Run the unit-test:
cargo test
- Run the manual-test:
- Build the binary in release mode:
cargo xbuild --release
- Flash the binary on the board:
espflash /dev/tty.usbserial-0001 crates/cross_compiled/target/xtensa-esp32-espidf/release/cross_compiled --flash-freq 80M --flash-size 4MB --fla sh-mode DIO --speed 921600 --monitor --partition-table crates/cross_compiled/esp32_ota_partitions.csv
- Invalid configuration -> start of configuration server
WordClock Configuration
.
- HTML page is displayed properly.
- Entering a valid configuration is parsed, and stored in persistent memory.
- Valid configuration -> the system switch to display time state.
- The time displayed is correct.
- Manuel reset of the device with 'Reset' button loads configuration from persistent memory and start displaying time properly.
- Pressing (long or short) the 'Enter' button switch the system to the menu.
- Long press on FOTA menu triggers FOTA.
- FOTA download succeed with log:
I (115661) application: Update ready, restart device
.
- System restart in new version.
- Build firmware in release mode:
cargo xbuild --release
- Build the tagged OTA image:
cargo generate_ota release
- Commit and push changes to
main
branch.
- Update the
released
branch to latest master
.