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 <stig.bjorlykke@nordicsemi.no>
This commit is contained in:
parent
35820f23f6
commit
95333705e5
1 changed files with 3 additions and 0 deletions
|
@ -849,6 +849,9 @@ static int sm_bootstrap_trans_done(void)
|
|||
client.ctx->sec_obj_inst = -1;
|
||||
client.use_bootstrap = false;
|
||||
|
||||
/* reset server timestamps */
|
||||
lwm2m_server_reset_timestamps();
|
||||
|
||||
set_sm_state(ENGINE_DO_REGISTRATION);
|
||||
|
||||
return 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue