BT Mesh Provisioner UI Application Component#
BT Mesh Provisioner UI Application component provides user interface functionality for provisioning applications in Bluetooth Mesh networks.
Enumerations#
enum
Typedefs#
typedef enum ui_state_e
UI state.
Functions#
sl_status_t
btmesh_app_prov_ui_handle_remote_prov_cmd(char cmd_id)
bool
btmesh_app_prov_ui_get_input_buffer(char **ui_input_buffer)
Macros#
#define
EXIT_COMMAND 'q'
#define
SCAN_COMMAND 's'
#define
#define
NODELIST_COMMAND 'l'
#define
NODEINFO_COMMAND 'i'
#define
#define
#define
#define
RESET_COMMAND 'e'
#define
PROV_UI_MENU undefined
Enumeration Documentation#
ui_state_e#
ui_state_e
UI state.
| Enumerator | |
|---|---|
| UI_MENU | |
| UI_WAITING_FOR_CMD | |
| UI_CMD_PROCESSING | |
| UI_WAITING_FOR_INPUT | |
| UI_EXIT | |
Function Documentation#
btmesh_app_prov_ui_handle_remote_prov_cmd#
sl_status_t btmesh_app_prov_ui_handle_remote_prov_cmd (char cmd_id)
Parameters
| Type | Direction | Argument Name | Description |
|---|---|---|---|
| char | [in] | cmd_id | Command id |
Remote provisioning related command handler
btmesh_app_prov_ui_get_ui_state#
sl_ui_state btmesh_app_prov_ui_get_ui_state (void )
Parameters
| Type | Direction | Argument Name | Description |
|---|---|---|---|
| void | N/A |
Get UI state
btmesh_app_prov_ui_get_input_buffer#
bool btmesh_app_prov_ui_get_input_buffer (char ** ui_input_buffer)
Parameters
| Type | Direction | Argument Name | Description |
|---|---|---|---|
| char ** | [out] | ui_input_buffer | data read from input console |
Get buffer with input console content
Macro Definition Documentation#
PROV_UI_MENU
#define PROV_UI_MENUValue:
"Please select a functionality\n\n" \
"s - Scan available nodes\n" \
"p - Provision a beaconing node\n" \
"l - List nodes in the network\n" \
"i - Information about a node in the network\n" \
"r - Remove node from the network\n" \
"k - Refresh the network key and app key\n" \
"x - Export the network keys, app keys and device keys\n" \
"e - Reset provisioner node and exit application\n" \
"q - Exit application\n\n"