Skip to content

Commit 85dfe3d

Browse files
juhaylinencarlescufi
authored andcommitted
net: lwm2m: Delay triggering registration update
Add short delay before triggering registration update. This allows postponing the update from application side if needed. Signed-off-by: Juha Ylinen <[email protected]>
1 parent 71c549e commit 85dfe3d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

subsys/net/lib/lwm2m/lwm2m_rd_client.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1132,7 +1132,7 @@ static void sm_registration_done(void)
11321132
if (sm_is_registered() &&
11331133
(client.trigger_update ||
11341134
now >= next_update())) {
1135-
set_sm_state(ENGINE_UPDATE_REGISTRATION);
1135+
set_sm_state_delayed(ENGINE_UPDATE_REGISTRATION, DELAY_FOR_ACK);
11361136
} else if (IS_ENABLED(CONFIG_LWM2M_QUEUE_MODE_ENABLED) &&
11371137
(client.engine_state != ENGINE_REGISTRATION_DONE_RX_OFF) &&
11381138
(now >= next_rx_off())) {

0 commit comments

Comments
 (0)