Bluetooth Mesh Friend Node API#
Bluetooth Mesh Friend Node API.
These commands and events are for the Friend operation, available in nodes which have the Friend feature.
Modules#
sl_btmesh_evt_friend_friendship_established
sl_btmesh_evt_friend_friendship_terminated
Macros#
Function Documentation#
sl_btmesh_friend_init#
sl_status_t sl_btmesh_friend_init (void )
| Type | Direction | Argument Name | Description |
|---|---|---|---|
| void | N/A |
Initialize the Friend mode. The node needs to be provisioned before calling this command. After the Friend mode is initialized, it is ready to accept friend requests from low-power nodes. This call has to be made before calling the other commands in this class.
Returns
SL_STATUS_OK if successful. Error code otherwise.
sl_btmesh_friend_deinit#
sl_status_t sl_btmesh_friend_deinit (void )
| Type | Direction | Argument Name | Description |
|---|---|---|---|
| void | N/A |
Deinitialize the Friend functionality. After calling this command, a possible friendship with a Low Power node is terminated and all friendships are terminated. After calling this command, don't call other commands in this class before the Friend mode is sl_btmesh_friend_init again.
Returns
SL_STATUS_OK if successful. Error code otherwise.