#[unsafe(no_mangle)]pub unsafe extern "C" fn pamoja_lorawan_firmware_set_image(
manager: *mut PamojaLorawanFirmware,
status: u8,
version: u32,
) -> PamojaStatusExpand description
Says what firmware upgrade image the device is holding.
§Arguments
manager- the package.status- one ofPAMOJA_LORAWAN_IMAGE_NONE,PAMOJA_LORAWAN_IMAGE_CORRUPT,PAMOJA_LORAWAN_IMAGE_WRONG_HARDWAREorPAMOJA_LORAWAN_IMAGE_VALID.version- the version the device would run once it is installed, for a valid image.
§Returns
PamojaStatus::Ok on success.
§Errors
Returns PamojaStatus::InvalidArgument for a null handle.
§Safety
manager must be a live handle.