nRF Connect SDK API 2.8.99
Loading...
Searching...
No Matches

◆ session_idle_timeout

int32_t lwm2m_carrier_config_t::session_idle_timeout

This configuration specifies the session idle (inactivity) timeout.

Upon timeout two things can happen:

  1. If a secure session is used, the LwM2M carrier library closes the DTLS session. A new DTLS session will be created on the next activity (for example, lifetime trigger). This does not apply when the DTLS session is using Connection ID.
  2. If a non-default PDP context (CID different than 0) is used, and there is no activity scheduled within 15 minutes, the PDP context is released.
  • Leaving this configuration empty (0) sets it to a default of 60 seconds.
  • Setting this configuration to -1 disables the session idle timeout.
Note
using lwm2m_carrier.c this option can be set in kconfig by setting CONFIG_LWM2M_CARRIER_SESSION_IDLE_TIMEOUT.