Home
last modified time | relevance | path

Searched refs:internal_ctx (Results 1 – 2 of 2) sorted by relevance

/AliOS-Things-master/components/py_engine/external/app_mgr/
A Dapp_upgrade.c25 static ota_service_t internal_ctx = { 0 }; variable
151 ota_service_param_reset(&internal_ctx); in py_app_upgrade_service()
153 ota_register_module_store(&internal_ctx, module_info, 3); in py_app_upgrade_service()
155 aos_kv_get(AMP_INTERNAL_PRODUCTKEY, internal_ctx.pk, &productkey_len); in py_app_upgrade_service()
157 aos_kv_get(AMP_INTERNAL_DEVICENAME, internal_ctx.dn, &devicename_len); in py_app_upgrade_service()
158 aos_kv_get(AMP_INTERNAL_DEVICESECRET, internal_ctx.ds, &devicesecret_len); in py_app_upgrade_service()
161 internal_ctx.mqtt_client = (void *)mqtt_handle; in py_app_upgrade_service()
165 res = ota_service_init(&internal_ctx); in py_app_upgrade_service()
172 current_ver = ota_get_module_ver(&internal_ctx, "default"); in py_app_upgrade_service()
173 res = ota_report_module_version(&internal_ctx, "default", current_ver); in py_app_upgrade_service()
[all …]
/AliOS-Things-master/components/amp/services/app_mgr/
A Dapp_upgrade.c23 static ota_service_t internal_ctx = {0}; variable
351 ota_service_param_reset(&internal_ctx); in amp_app_upgrade_service()
353 ota_register_module_store(&internal_ctx, module_info, 3); in amp_app_upgrade_service()
355 aos_kv_get(AMP_INTERNAL_PRODUCTKEY, internal_ctx.pk, &productkey_len); in amp_app_upgrade_service()
357 aos_kv_get(AMP_INTERNAL_DEVICENAME, internal_ctx.dn, &devicename_len); in amp_app_upgrade_service()
358 aos_kv_get(AMP_INTERNAL_DEVICESECRET, internal_ctx.ds, &devicesecret_len); in amp_app_upgrade_service()
361 internal_ctx.mqtt_client = (void *)mqtt_handle; in amp_app_upgrade_service()
365 res = ota_service_init(&internal_ctx); in amp_app_upgrade_service()
372 current_ver = ota_get_module_ver(&internal_ctx, "default"); in amp_app_upgrade_service()
373 res = ota_report_module_version(&internal_ctx, "default", current_ver); in amp_app_upgrade_service()
[all …]

Completed in 3 milliseconds