Function anj_dm_server_obj_restore

Function Documentation

int anj_dm_server_obj_restore(anj_dm_server_obj_t *server_obj_ctx, const anj_persistence_context_t *ctx)

Deserializes the LwM2M Server Object from the persistence stream.

Reads Server Object instance and its resources from the underlying medium via ctx->read.

Parameters:
  • server_obj_ctx – Server Object context to fill.

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

Returns:

0 on success, negative value on error.