Bluetooth: Mesh: Modularizing the proxy
The Bluetooth proxy feature includes proxy client and proxy server. In addition to the proxy pdu message used above, pb-gatt also uses the same proxy pdu message. Currently zephyr bluetooth mesh couples them in one file. A file at the separation is called gatt_services.c, which is used to contain Mesh Provisioning Service and Mesh Proxy Service. Another file in the separation is called proxy_msg.c, which is used to process Proxy pdu messages. Also according to Trond's suggestion: Rename `CONFIG_BT_MESH_PROXY` to `CONFIG_BT_MESH_GATT`. Create an additional promptless entry `CONFIG_BT_MESH_GATT_SERVER` that selects `CONFIG_BT_MESH_GATT` and is selected by `CONFIG_BT_MESH_GATT_PROXY` or `CONFIG_BT_MESH_PB_GATT`. Create additional `CONFIG_BT_MESH_PROXY` used to represent proxy feature (also include proxy client). see #36343 Signed-off-by: Lingao Meng <menglingao@xiaomi.com>
This commit is contained in:
parent
4268592dc2
commit
3a559e972a
11 changed files with 1339 additions and 1242 deletions
|
@ -132,7 +132,7 @@
|
|||
Z_ITERABLE_SECTION_ROM(bt_mesh_lpn_cb, 4)
|
||||
#endif
|
||||
|
||||
#if defined(CONFIG_BT_MESH_PROXY)
|
||||
#if defined(CONFIG_BT_MESH_GATT_PROXY)
|
||||
Z_ITERABLE_SECTION_ROM(bt_mesh_proxy_cb, 4)
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue