Function anj_dm_server_obj_store
Defined in File server_object.h
Function Documentation
-
int anj_dm_server_obj_store(anj_dm_server_obj_t *server_obj_ctx, const anj_persistence_context_t *ctx)
Serializes the current LwM2M Server Object into the persistence stream.
Writes Server Object instance and its resources to the underlying medium via
ctx->write.- Parameters:
server_obj_ctx – Server Object context to serialize.
ctx – Persistence context; must have direction set to ANJ_PERSISTENCE_STORE.
- Returns:
0 on success, negative value on error.