Commit 90bc3cc9 authored by Kishen Maloor's avatar Kishen Maloor

oc_cloud:persist CloudConf if provisioned via API

Signed-off-by: Kishen Maloor's avatarKishen Maloor <kishen.maloor@intel.com>
Change-Id: Ibf2505c0ef479fe02b7084bf0b0c91794d31b356
parent 8f1b611f
......@@ -167,6 +167,8 @@ oc_cloud_provision_conf_resource(oc_cloud_context_t *ctx, const char *server,
ctx->store.status = OC_CLOUD_INITIALIZED;
ctx->cps = OC_CPS_READYTOREGISTER;
cloud_store_dump_async(&ctx->store);
if (ctx->cloud_manager) {
cloud_reconnect(ctx);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment