Skip to content

Commit 9533370

Browse files
stig-bjorlykkefabiobaltieri
authored andcommitted
net: lwm2m: Reset server timestamps after bootstrap
Reset the server timestamps after bootstrap to handle a case where a new server instance has replaced the bootstrap server instance. Signed-off-by: Stig Bjørlykke <[email protected]>
1 parent 35820f2 commit 9533370

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

subsys/net/lib/lwm2m/lwm2m_rd_client.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -849,6 +849,9 @@ static int sm_bootstrap_trans_done(void)
849849
client.ctx->sec_obj_inst = -1;
850850
client.use_bootstrap = false;
851851

852+
/* reset server timestamps */
853+
lwm2m_server_reset_timestamps();
854+
852855
set_sm_state(ENGINE_DO_REGISTRATION);
853856

854857
return 0;

0 commit comments

Comments
 (0)