1 of 1 people found this helpful
1. The secure OTA upgrade sample checks app ID and major version and the non-secure OTA sample app does not. If you need to, you can add similar checks in your application's implementation of the non-secure OTA upgrade code.
2. No, this is done in the app. In the secure OTA upgrade sample app, see ws_upgrade_ota_handle_data(), there is a check:
if (ws_upgrade_info.Version_Major < WsUpgradeAppInfo.Version_Major)
3. See ws_upgrade_ota_handle_data() in ws_sec_upgrade_ota.c. App ID and major version are both used here.