Function anjay_registration_expiration_time

Function Documentation

static inline avs_time_real_t anjay_registration_expiration_time(anjay_t *anjay, anjay_ssid_t ssid)

Function replaced with anjay_registration_expiration_time_with_status(), which support LwM2M 1.2.

Returns the time at which the lifetime of a registration to a given LwM2M Server expires.

Note that this is not the time at which the Update message will be sent. Update messages are planned for MAX_TRANSMIT_WAIT before the expiration time (or at halfway between last registration update and the expiration time if that is less than MAX_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.

Returns:

Point in time according to the real-time clock at which the registration expires, or AVS_TIME_REAL_INVALID if there is no active registration for a given server or no such server connection exists.