bt_mesh_subnet_set() function
Initialize a new Subnet.
Arguments
net_idx
Network index of the Subnet.
kr_phase
Key refresh phase the Subnet should be in.
key
The current network key for the Subnet.
new_key
New network key, if available.
Return value
0 on success, or (negative) error code on failure.
bt_mesh_subnet_set() is called by 1 function and calls 3 functions:
![]()
bt_mesh_subnet_set()
bt_mesh_subnet_set() reads 4 variables and writes 3 variables:
![]()
bt_mesh_subnet_set()