Function anj_ntp_obj_store
Defined in File ntp.h
Function Documentation
-
int anj_ntp_obj_store(anj_ntp_t *ntp, const anj_persistence_context_t *ctx)
Serializes the current LwM2M NTP Object into the persistence stream. Should be called before shutting down the application or when the NTP object state changes (ANJ_NTP_STATUS_OBJECT_UPDATED event).
Writes NTP Object instance and its resources to the underlying medium via
ctx->write.- Parameters:
ntp – NTP Object context to serialize.
ctx – Persistence context; must have anj_persistence_context_t::direction set to ANJ_PERSISTENCE_STORE.
- Returns:
0 on success, negative value on error.