Commit 727086bc authored by Kishen Maloor's avatar Kishen Maloor

Remove auto register to Cloud on POST CloudConf

Change-Id: Ie2e1ee20c2f3c444e4e409d4d99c20e020897bfa
Signed-off-by: Kishen Maloor's avatarKishen Maloor <kishen.maloor@intel.com>
parent 9a89fddc
......@@ -100,23 +100,6 @@ cloud_close_endpoint(oc_endpoint_t *cloud_ep)
}
}
static void
cloud_register_internal_cb(oc_cloud_context_t *ctx, oc_cloud_status_t status,
void *data)
{
(void)ctx;
(void)status;
(void)data;
}
static oc_event_callback_retval_t
cloud_register_internal(void *user_data)
{
oc_cloud_context_t *ctx = (oc_cloud_context_t *)user_data;
oc_cloud_register(ctx, cloud_register_internal_cb, NULL);
return OC_EVENT_DONE;
}
#ifdef OC_SECURITY
static void
cloud_deregister_on_reset_internal(oc_cloud_context_t *ctx,
......@@ -179,8 +162,6 @@ cloud_update_by_resource(oc_cloud_context_t *ctx,
ctx->store.status = OC_CLOUD_INITIALIZED;
if (ctx->cloud_manager) {
cloud_reconnect(ctx);
} else {
oc_set_delayed_callback(ctx, cloud_register_internal, 0);
}
}
......
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