mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-03-29 22:20:37 +00:00
mesh: reset seq numbers on node reset
This commit is contained in:
parent
46f4dd9946
commit
db3262bc38
@ -1068,6 +1068,9 @@ void mesh_node_reset(void){
|
||||
mesh_delete_virtual_addresses();
|
||||
mesh_delete_subscriptions();
|
||||
mesh_delete_publications();
|
||||
// also reset iv index + sequence number
|
||||
mesh_set_iv_index(0);
|
||||
mesh_sequence_number_set(0);
|
||||
// start advertising as unprovisioned device
|
||||
mesh_access_setup_unprovisioned_device(mesh_node_get_device_uuid());
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user