From 86624941e44de100c492dc299c46fbbf1bb48d7f Mon Sep 17 00:00:00 2001 From: Johan Hedberg Date: Mon, 13 Nov 2017 20:57:34 +0200 Subject: [PATCH] Bluetooth: samples/mesh_demo: Add dummy provisioning Some of the provisoning routines, such as node reset assume that we have a valid bt_mesh_prov pointer. Signed-off-by: Johan Hedberg --- samples/bluetooth/mesh_demo/src/main.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/samples/bluetooth/mesh_demo/src/main.c b/samples/bluetooth/mesh_demo/src/main.c index 6181fa88c1bc..c7d75f7333e8 100644 --- a/samples/bluetooth/mesh_demo/src/main.c +++ b/samples/bluetooth/mesh_demo/src/main.c @@ -167,6 +167,12 @@ static void configure(void) board_play("100C100D100E100F100G100A100H"); } +static const u8_t dev_uuid[16] = { 0xdd, 0xdd }; + +static const struct bt_mesh_prov prov = { + .uuid = dev_uuid, +}; + static void bt_ready(int err) { if (err) { @@ -176,7 +182,7 @@ static void bt_ready(int err) printk("Bluetooth initialized\n"); - err = bt_mesh_init(NULL, &comp); + err = bt_mesh_init(&prov, &comp); if (err) { printk("Initializing mesh failed (err %d)\n", err); return;