Bluetooth: Mesh: Add queue_size and recv_win to lpn_cb
Add Queue Size and Receive Window information to lpn callback function to notify upper layer to determine currently friend node information, which may be used in future. Add Callback structure to notification application which friendship has been changed. Add function `bt_mesh_friend_terminate` let's app layer determine terminate friendship manually. Signed-off-by: Lingao Meng <mengabc1086@gmail.com>
This commit is contained in:
parent
60fb850713
commit
27739fcc43
5 changed files with 164 additions and 28 deletions
|
@ -107,6 +107,14 @@
|
|||
Z_ITERABLE_SECTION_ROM(bt_mesh_app_key_cb, 4)
|
||||
#endif
|
||||
|
||||
#if defined(CONFIG_BT_MESH_FRIEND)
|
||||
Z_ITERABLE_SECTION_ROM(bt_mesh_friend_cb, 4)
|
||||
#endif
|
||||
|
||||
#if defined(CONFIG_BT_MESH_LOW_POWER)
|
||||
Z_ITERABLE_SECTION_ROM(bt_mesh_lpn_cb, 4)
|
||||
#endif
|
||||
|
||||
#if defined(CONFIG_EC_HOST_CMD)
|
||||
Z_ITERABLE_SECTION_ROM(ec_host_cmd_handler, 4)
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue