-
Run
scripts/gen-device.sh
. -
Run
scripts/get-credentials.zip
Use ota-cli. In the commands bellow use cargo run --
instead of ota
if you are running ota-cli
from source.
In the following instructions, the uuids used are outputs from previous commands.
ota init --director http://director.ota.ce --registry http://deviceregistry.ota.ce --credentials path/to/credentials.zip -t http://reposerver.ota.ce
ota package add -n mypkg -v 0.0.2 --path path/to/binary.bin --binary --hardware ota-ce-device
ota package list
Create a file describing the update
# specify each hardware identifier in square brackets
[ota-ce-device]
target_format = "binary"
generate_diff = true
# required metadata specifying update target
[ota-ce-device.to]
name = "mypkg"
version = "0.0.1"
length = 1110186
hash = "e44664c98575081dc778de960cb69627505fb4ff033ec3d8827dd9eff80ffce3"
method = "sha256"
ota update create -t examples/targets-ota-ce.toml
ota update launch --update f3b7950c-97d0-44ef-8ee9-93158b8f0f0f --device 5a04529c-3f30-418b-b8e8-92bfcc36f54b