This client will send firmware update request to server in encrypted format with it's public key.Service will decrypt it and validate against known devices.Will send out firmware accordingly
If there is an update client will get 200 with firmware
If not it will get either 400/304
RUST_BACKTRACE=1 cargo run http://localhost:8080/api/v1/ota/update test1
https://github.com/cross-rs/cross - using this tool will be easy
cargo install cross --git https://github.com/cross-rs/cross
make build-raspberry-pi
debian and openwrt
RUST_BACKTRACE=1 cargo run https://secure-updater-217625542343.europe-west2.run.app/api/v1/ota/update test1
cargo build