Function anjay_get_server_last_registration_time
Defined in File core.h
Function Documentation
-
avs_error_t anjay_get_server_last_registration_time(anjay_t *anjay, anjay_ssid_t ssid, avs_time_real_t *out_time)
Gets the time at which the client has registered successfully to a given LwM2M server for the last time.
- Parameters:
anjay – Anjay object to operate on.
ssid – A Short Server ID of a single regular LwM2M Server for which to get the information, or ANJAY_SSID_ANY to get the time of the last successful registration to any known server.
out_time – [out] Non-NULL pointer to an avs_time_real_t structure. The structure will be filled with information about a point in time according to the real-time clock at which the last registration happened, or
AVS_TIME_REAL_INVALIDif there was no successful registration to a given server.
- Returns:
AVS_OK on success, or an error code.