net: lwm2m: Allow configuring update period
Add new configuration value CONFIG_LWM2M_UPDATE_PERIOD that allows calculating update period from last update, instead of calculating it from the lifetime. In runtime, server is allowed to change the lifetime of the registration which causes update perdiod to be effected. When fixed update period is preferred, UPDATE_PERIOD config is then used. Signed-off-by: Seppo Takalo <seppo.takalo@nordicsemi.no>
This commit is contained in:
parent
5246cea800
commit
8ffb64d46f
8 changed files with 82 additions and 8 deletions
|
@ -61,6 +61,8 @@ CONFIG_COAP_EXTENDED_OPTIONS_LEN_VALUE=40
|
|||
# Use QUEUE mode by default
|
||||
CONFIG_LWM2M_QUEUE_MODE_ENABLED=y
|
||||
CONFIG_LWM2M_QUEUE_MODE_UPTIME=20
|
||||
CONFIG_LWM2M_UPDATE_PERIOD=30
|
||||
CONFIG_LWM2M_SECONDS_TO_UPDATE_EARLY=10
|
||||
|
||||
# LwM2M configuration as OMA-ETS-LightweightM2M_INT-V1_1-20190912-D Configuration 3
|
||||
CONFIG_LWM2M_ENGINE_DEFAULT_LIFETIME=30
|
||||
|
|
|
@ -32,3 +32,4 @@ add_compile_definitions(CONFIG_LWM2M_QUEUE_MODE_ENABLED=1)
|
|||
add_compile_definitions(CONFIG_LWM2M_TLS_SESSION_CACHING=1)
|
||||
add_compile_definitions(CONFIG_LWM2M_RD_CLIENT_LISTEN_AT_IDLE=1)
|
||||
add_compile_definitions(CONFIG_LWM2M_RD_CLIENT_SUPPORT_BOOTSTRAP=1)
|
||||
add_compile_definitions(CONFIG_LWM2M_UPDATE_PERIOD=0)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue