Build DePHY application on ESP32C3 with esp-idf
and Rust!
This boilderplate brings you:
secp256k1
private key in eFuseAnd also:
std
supportasync
support with tokio
# macOS brew install libuv # Debian/Ubuntu/etc. apt-get install libuv-dev # Fedora dnf install systemd-devel rustup toolchain install nightly --component rust-src rustup target add riscv32imc-unknown-none-elf cargo install ldproxy cargo install espup cargo install espflash cargo install cargo-espflash
build.env
and apply some configurations on it:cp example.build.env build.env # or just create the file touch build.env
cargo run # equals to cargo espflash flash --monitor --partition-table huge_app.csv
The firmware checks if keys are burnt in eFuse, if no, it enters Key Inspect Mode
:
v.
;device name with MAC address
, public key
, and the corresponding ethereum address
to the serial console every 10 seconds, during this, the 2 LEDs will blink simultaneously.The firmware checks if the Wi-Fi should be provisioned, if no, it enters Wi-Fi Provisioning Mode
:
esp-idf
SDK;BLE mode
with Security 1 Scheme
, the pop
parameter is set to abcd1234
(default value in official provisioning Apps) for convenient testing;If keys and Wi-Fi are well provisioned, the firmware waits for button input for boot modes:
Wi-Fi Provisioning Mode
(referring to 2.
);Key Inspect Mode
(referring to 1.
);Build configurations are stored in build.env
and only being read on building.
BUILD_PRINT_EXPANDED_ENV
bool
Weather to print generated codes in cargo run
. Default to be false
. DEPHY_ENDPOINT_HTTP
&str
The endpoint to publish DePHY messages. Default to be https://send.testnet.dephy.io/dephy/signed_message
. APP_SEND_LOOP_DURATION
u64
Time duration of one cycle in the send loop in seconds. Default to be 10
.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4