Skip to main content

build_dev_ota_state

Function build_dev_ota_state 

Source
pub fn build_dev_ota_state(
    version: u64,
    title: &str,
    changed_files: Vec<String>,
) -> OtaBundleState
Expand description

Compiles a fresh signed Dynamic WASM OTA hot-update bundle for version version.

§Arguments

  • u64 - Monotonic OTA bundle version number.
  • &str - Human-readable title embedded into the executable .wasm module.
  • Vec<String> - Source file paths triggering this hot update.

§Returns

  • OtaBundleState - Signed manifest and executable .wasm bytes.