Function anj_core_disable_server
Defined in File core.h
Function Documentation
-
void anj_core_disable_server(anj_t *anj, anj_time_duration_t timeout)
Temporarily disables the LwM2M Server connection.
If the server is currently active and registered, a De-Register message will be sent before the connection is closed. If the server is already disabled, calling this function updates the disable timeout.
The server will be automatically re-enabled after the specified duration. To disable the server indefinitely, set
timeoutto ANJ_TIME_DURATION_INVALID.- Parameters:
anj – Anjay object.
timeout – Duration of the disable period, expressed as anj_time_duration_t.