|
MeshX 0.4
This repository provides an implementation for Bluetooth Low Energy (BLE) Mesh network nodes. The project allows you to create BLE mesh nodes that can communicate with each other, enabling the development of smart home solutions or other IoT-based applications.
|
Core implementation of the MeshX standalone shell. More...
#include "interface/utils/meshx_shell.h"#include "interface/meshx_platform.h"#include "interface/rtos/meshx_task.h"#include "interface/logging/meshx_log.h"#include <string.h>#include <stdarg.h>#include <stdio.h>#include <ctype.h>#include "interface/utils/meshx_tiny_printf.h"Macros | |
| #define | SHELL_MAX_LINE_LEN 256 |
| #define | SHELL_MAX_ARGS 16 |
| #define | SHELL_PROMPT "" |
Functions | |
| void | meshx_shell_printf (const char *fmt,...) |
| Prints a message to the shell console. | |
| static void | shell_help_cmd (void) |
| static void | shell_process_line (char *line) |
| static void | shell_task (void *pvParameters) |
| meshx_err_t | meshx_shell_init (void) |
| Initializes the MeshX shell core and the underlying platform console. | |
| meshx_err_t | meshx_shell_register_command (const meshx_shell_cmd_t *cmd) |
| Registers a command with the MeshX shell. | |
| meshx_err_t | meshx_shell_start (void) |
| Starts the MeshX shell task. | |
Variables | |
| struct { | |
| meshx_shell_cmd_t commands [32] | |
| uint8_t cmd_count | |
| char line_buffer [256] | |
| uint8_t line_ptr | |
| bool initialized | |
| } | shell_ctx |
Core implementation of the MeshX standalone shell.
Copyright © 2024 - 2025 MeshX
| #define SHELL_MAX_ARGS 16 |
| #define SHELL_MAX_LINE_LEN 256 |
| #define SHELL_PROMPT "" |
| meshx_err_t meshx_shell_init | ( | void | ) |
Initializes the MeshX shell core and the underlying platform console.
| void meshx_shell_printf | ( | const char * | fmt, |
| ... ) |
Prints a message to the shell console.
| [in] | fmt | Format string. |
| [in] | ... | Arguments. |
| meshx_err_t meshx_shell_register_command | ( | const meshx_shell_cmd_t * | cmd | ) |
Registers a command with the MeshX shell.
| [in] | cmd | Pointer to the command structure. |
| meshx_err_t meshx_shell_start | ( | void | ) |
Starts the MeshX shell task.
|
static |
|
static |
|
static |
| uint8_t cmd_count |
| meshx_shell_cmd_t commands[32] |
| bool initialized |
| char line_buffer[256] |
| uint8_t line_ptr |
| struct { ... } shell_ctx |