From 9a3ff5cdff8469d3a044eeae6d1f99b5ad8c29b1 Mon Sep 17 00:00:00 2001 From: Trond Einar Snekvik Date: Mon, 26 Aug 2019 16:05:22 +0200 Subject: [PATCH] Bluetooth: Mesh: Add prov input_complete to shell Notifies the user that the callback fired. Signed-off-by: Trond Einar Snekvik --- subsys/bluetooth/mesh/shell.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/subsys/bluetooth/mesh/shell.c b/subsys/bluetooth/mesh/shell.c index 7fea6422e82..47df6c3d34a 100644 --- a/subsys/bluetooth/mesh/shell.c +++ b/subsys/bluetooth/mesh/shell.c @@ -215,6 +215,11 @@ static void prov_complete(u16_t net_idx, u16_t addr) net.dst = addr; } +static void prov_input_complete(void) +{ + shell_print(ctx_shell, "Input complete"); +} + static void prov_reset(void) { shell_print(ctx_shell, "The local node has been reset and needs " @@ -357,6 +362,7 @@ static struct bt_mesh_prov prov = { .input_size = 6, .input_actions = (BT_MESH_ENTER_NUMBER | BT_MESH_ENTER_STRING), .input = input, + .input_complete = prov_input_complete, }; static int cmd_static_oob(const struct shell *shell, size_t argc, char *argv[])