bt_mesh_subnet_node_id_set() function
Set the Node Identity state of the Subnet. The Node Identity state of a Subnet determines whether the Subnet advertises connectable Node Identity beacons for Proxy Clients to connect to. Once started, the Node Identity beacon runs for 60 seconds, or until it is stopped. This function serves the same purpose as bt_mesh_proxy_identity_enable, but only acts on a single Subnet. GATT Proxy support must be enabled through @option{CONFIG_BT_MESH_GATT_PROXY}.
Arguments
node_id
New Node Identity state, must be either BT_MESH_FEATURE_ENABLED or BT_MESH_FEATURE_DISABLED.
Return value
STATUS_SUCCESS Successfully set the Node Identity state of the Subnet. STATUS_INVALID_NETKEY The NetIdx is unknown. STATUS_FEAT_NOT_SUPP The Node Identity feature is not supported. STATUS_CANNOT_SET Couldn't set the Node Identity state.
bt_mesh_subnet_node_id_set() is called by 1 function and calls 4 functions:
![]()
bt_mesh_subnet_node_id_set()
bt_mesh_subnet_node_id_set() reads 1 variable:
![]()
bt_mesh_subnet_node_id_set()