zephyr/subsys/bluetooth/mesh/shell/utils.h
Anders Storrø bfb4e1bac4 Bluetooth: Mesh: Shell: Split out mdl shell feat
This commit splits out the model related commands from mesh shell to
separate shell modules. The purpose of this alteration is to make model
commands more flexible by letting the application itself define the
model instances.

- Move Health Client commands to separate shell module.
- Move Config Client commands to separate shell module.
- Remove Health Client instance from shell.c.
- Add Health Client instance to mesh_shell test application.
- Add util library for Mesh shell.
- Some refactoring of shell menu layout.
- Update Mesh shell documentation.

Signed-off-by: Anders Storrø <anders.storro@nordicsemi.no>
2022-09-07 15:02:58 +02:00

18 lines
526 B
C

/*
* Copyright (c) 2022 Nordic Semiconductor ASA
*
* SPDX-License-Identifier: Apache-2.0
*/
#include <stdint.h>
#include <zephyr/shell/shell.h>
bool bt_mesh_shell_mdl_first_get(uint16_t id, struct bt_mesh_model **mod);
int bt_mesh_shell_mdl_instance_set(const struct shell *shell, struct bt_mesh_model **mod,
uint16_t mod_id, uint8_t elem_idx);
int bt_mesh_shell_mdl_print_all(const struct shell *shell, uint16_t mod_id);
int bt_mesh_shell_mdl_cmds_help(const struct shell *shell, size_t argc, char **argv);