Function anj_dm_security_obj_restore

Function Documentation

int anj_dm_security_obj_restore(anj_t *anj, anj_dm_security_obj_t *security_obj_ctx, const anj_persistence_context_t *ctx)

Deserializes the LwM2M Security Object from the persistence stream.

Reads Security Object instances and their resources from the underlying medium via ctx->read.

Parameters:
  • anj – Initialized Anjay-Lite handle.

  • security_obj_ctx – Security Object context to fill.

  • ctx – Persistence context; must have direction set to ANJ_PERSISTENCE_RESTORE.

Returns:

0 on success, negative value on error.