Function anjay_registration_expiration_time_with_status
Defined in File core.h
Function Documentation
-
avs_time_real_t anjay_registration_expiration_time_with_status(anjay_t *anjay, anjay_ssid_t ssid, anjay_registration_expiration_status_t *out_status)
Returns the time at which the lifetime of a registration to a given LwM2M Server expires. Returns the registration status through an inout parameter
out_status.Note that this is not the time at which the Update message will be sent. Update messages are planned for
MAX_TRANSMIT_WAITbefore the expiration time (or at halfway between last registration update and the expiration time if that is less thanMAX_TRANSMIT_WAIT) to allow some leeway to make sure that the registration is renewed strictly before it expires.If you want to retrieve the information about the next scheduled Update operation, please use anjay_next_planned_lifecycle_operation.
- Parameters:
anjay – Anjay object to operate on.
ssid – Short Server ID of a non-bootstrap LwM2M Server for which to get the information.
out_status – Status of expiration.
- Returns:
Point in time according to the real-time clock at which the registration expires, or
AVS_TIME_REAL_INVALIDif there is no active registration for a given server or no such server connection exists.AVS_TIME_REAL_INVALIDis returned also in case of inifinite lifetime