Function anj_ntp_obj_store

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:
Returns:

0 on success, negative value on error.