Skip to content

Commit 7a0a4ba

Browse files
committed
Add mesh demo
See raspberrypi/pico-sdk#1691
1 parent 362f676 commit 7a0a4ba

File tree

3 files changed

+18
-0
lines changed

3 files changed

+18
-0
lines changed

pico_w/bt/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -358,6 +358,7 @@ set(BTSTACK_EXAMPLES_ADDITIONAL
358358
gatt_browser
359359
gatt_device_information_query
360360
le_streamer_client
361+
mesh_node_demo
361362
)
362363

363364
# These examples will only be built if pico-extras exists

pico_w/bt/config/btstack_config.h

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,16 @@
2626
#define ENABLE_CROSS_TRANSPORT_KEY_DERIVATION
2727
#endif
2828

29+
// Mesh Configuration
30+
#ifdef ENABLE_MESH // defined by pico_btstack_mesh
31+
#define ENABLE_MESH_ADV_BEARER
32+
#define ENABLE_MESH_GATT_BEARER
33+
#define ENABLE_MESH_PB_ADV
34+
#define ENABLE_MESH_PB_GATT
35+
#define ENABLE_MESH_PROVISIONER
36+
#define ENABLE_MESH_PROXY_SERVER
37+
#endif
38+
2939
// BTstack configuration. buffers, sizes, ...
3040
#define HCI_OUTGOING_PRE_BUFFER_SIZE 4
3141
#define HCI_ACL_PAYLOAD_SIZE (1691 + 4)
@@ -50,6 +60,12 @@
5060
#define MAX_NR_SM_LOOKUP_ENTRIES 3
5161
#define MAX_NR_WHITELIST_ENTRIES 16
5262
#define MAX_NR_LE_DEVICE_DB_ENTRIES 16
63+
#define MAX_NR_MESH_SUBNETS 2
64+
#define MAX_NR_MESH_TRANSPORT_KEYS 16
65+
#define MAX_NR_MESH_VIRTUAL_ADDRESSES 16
66+
67+
// allow for one NetKey update
68+
#define MAX_NR_MESH_NETWORK_KEYS (MAX_NR_MESH_SUBNETS+1)
5369

5470
// Limit number of ACL/SCO Buffer to use by stack to avoid cyw43 shared bus overrun
5571
#define MAX_NR_CONTROLLER_ACL_BUFFERS 3
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
picow_bt_example(mesh_node_demo pico_btstack_mesh)

0 commit comments

Comments
 (0)