Function anj_dm_security_obj_store
Defined in File security_object.h
Function Documentation
-
int anj_dm_security_obj_store(anj_t *anj, anj_dm_security_obj_t *security_obj_ctx, const anj_persistence_context_t *ctx)
Serializes the current LwM2M Security Object into the persistence stream.
Writes all present Security Object instances and their resources to the underlying medium via
ctx->write.- Parameters:
anj – Initialized Anjay-Lite handle.
security_obj_ctx – Security Object context to serialize.
ctx – Persistence context; must have direction set to ANJ_PERSISTENCE_STORE.
- Returns:
0 on success, negative value on error.