Skip to content

Commit

Permalink
Bluetooth: samples/mesh_demo: Add dummy provisioning
Browse files Browse the repository at this point in the history
Some of the provisoning routines, such as node reset assume that we
have a valid bt_mesh_prov pointer.

Signed-off-by: Johan Hedberg <[email protected]>
  • Loading branch information
Johan Hedberg authored and jhedberg committed Nov 15, 2017
1 parent 0ef7c6e commit 8662494
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion samples/bluetooth/mesh_demo/src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand All @@ -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;
Expand Down

0 comments on commit 8662494

Please sign in to comment.