Hello
I need to read the current mesh IV index of a provisioned node.
Found 2 structures with the iv_index field : struct bt_mesh_cdb bt_mesh_cdb and struct bt_mesh_net bt_mesh
Only bt_mesh_cdb is publicly available - the struct bt_mesh_net declaration is in the private header net.h which is not accessible at the application level
Is my assumption correct, that the updated IV index is saved in the cdb and bt_mesh_cdb object always has the updated value?
If so - I could just read the iv_index field of bt_mesh_cdb.
Or is there another "official" way?
I only need to read the current IV index so I can pass it to the mesh shell provision command
Another question (though it was discussed in a previous ticket,just want to clarify and confirm)
If a node is provisioned with mesh shell provision command with IV index 0 on the network where the current IV index is non zero - what happens? Does the newly provisioned node eventually catch up and can communicate?
Thanks
Andy