Bluetooth: Mesh: Add prov input_complete to shell

Notifies the user that the callback fired.

Signed-off-by: Trond Einar Snekvik <Trond.Einar.Snekvik@nordicsemi.no>
This commit is contained in:
Trond Einar Snekvik 2019-08-26 16:05:22 +02:00 committed by Johan Hedberg
commit 9a3ff5cdff

View file

@ -215,6 +215,11 @@ static void prov_complete(u16_t net_idx, u16_t addr)
net.dst = addr; net.dst = addr;
} }
static void prov_input_complete(void)
{
shell_print(ctx_shell, "Input complete");
}
static void prov_reset(void) static void prov_reset(void)
{ {
shell_print(ctx_shell, "The local node has been reset and needs " 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_size = 6,
.input_actions = (BT_MESH_ENTER_NUMBER | BT_MESH_ENTER_STRING), .input_actions = (BT_MESH_ENTER_NUMBER | BT_MESH_ENTER_STRING),
.input = input, .input = input,
.input_complete = prov_input_complete,
}; };
static int cmd_static_oob(const struct shell *shell, size_t argc, char *argv[]) static int cmd_static_oob(const struct shell *shell, size_t argc, char *argv[])