Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add mesh demo #568

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions pico_w/bt/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -358,6 +358,7 @@ set(BTSTACK_EXAMPLES_ADDITIONAL
gatt_browser
gatt_device_information_query
le_streamer_client
mesh_node_demo
)

# These examples will only be built if pico-extras exists
Expand Down
16 changes: 16 additions & 0 deletions pico_w/bt/config/btstack_config.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,16 @@
#define ENABLE_CROSS_TRANSPORT_KEY_DERIVATION
#endif

// Mesh Configuration
#ifdef ENABLE_MESH // defined by pico_btstack_mesh
#define ENABLE_MESH_ADV_BEARER
#define ENABLE_MESH_GATT_BEARER
#define ENABLE_MESH_PB_ADV
#define ENABLE_MESH_PB_GATT
#define ENABLE_MESH_PROVISIONER
#define ENABLE_MESH_PROXY_SERVER
#endif

// BTstack configuration. buffers, sizes, ...
#define HCI_OUTGOING_PRE_BUFFER_SIZE 4
#define HCI_ACL_PAYLOAD_SIZE (1691 + 4)
Expand All @@ -50,6 +60,12 @@
#define MAX_NR_SM_LOOKUP_ENTRIES 3
#define MAX_NR_WHITELIST_ENTRIES 16
#define MAX_NR_LE_DEVICE_DB_ENTRIES 16
#define MAX_NR_MESH_SUBNETS 2
#define MAX_NR_MESH_TRANSPORT_KEYS 16
#define MAX_NR_MESH_VIRTUAL_ADDRESSES 16

// allow for one NetKey update
#define MAX_NR_MESH_NETWORK_KEYS (MAX_NR_MESH_SUBNETS+1)

// Limit number of ACL/SCO Buffer to use by stack to avoid cyw43 shared bus overrun
#define MAX_NR_CONTROLLER_ACL_BUFFERS 3
Expand Down
1 change: 1 addition & 0 deletions pico_w/bt/mesh_node_demo/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
picow_bt_example(mesh_node_demo pico_btstack_mesh)
Loading