Function anj_core_server_obj_disable_executed

Function Documentation

void anj_core_server_obj_disable_executed(anj_t *anj, uint32_t timeout)

Should be called when the Disable Resource of the Server Object (/1/x/4) is executed.

Note

The disable process will be scheduled but delayed until the currently processed LwM2M request is fully completed.

Note

A De-Register message will be sent to the server before the connection is closed.

Parameters:
  • anj – Anjay object.

  • timeout – Timeout for which the server should remain disabled, in seconds. This value MUST be taken from the Disable Timeout Resource (/1/x/5) of the Server Object Instance corresponding to the LwM2M server that has executed the Resource. If that resource is not present, the default value of ANJ_DISABLE_TIMEOUT_DEFAULT_VALUE SHALL be used.