You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: esp_cli_commands/README.md
+36-36Lines changed: 36 additions & 36 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
# ESP Commands
2
2
3
-
The `esp_commands` component provides a flexible command registration and execution framework for ESP-IDF applications.
3
+
The `esp_cli_commands` component provides a flexible command registration and execution framework for ESP-IDF applications.
4
4
It allows applications to define console-like commands with metadata (help text, hints, glossary entries) and register them dynamically or statically.
5
5
6
6
---
@@ -25,17 +25,17 @@ It allows applications to define console-like commands with metadata (help text,
25
25
By default, the component is initialized with a default configuration. It is however possible for the user to update this configuration with the call of the following API:
26
26
27
27
```c
28
-
esp_commands_config_t config = {
28
+
esp_cli_commands_config_t config = {
29
29
.heap_caps_used = <user specific value>,
30
30
.max_cmdline_length = <user specific value>,
31
31
.max_cmdline_args = <user specific value>,
32
32
.hint_color = <user specific value>,
33
33
.hint_bold = <user specific value>
34
34
};
35
-
esp_commands_update_config(&config);
35
+
esp_cli_commands_update_config(&config);
36
36
```
37
37
38
-
- `write_func`: The custom write function used by esp_commands to output data (default to posix write is not specified)
38
+
- `write_func`: The custom write function used by esp_cli_commands to output data (default to posix write is not specified)
39
39
- `max_cmdline_length`: Maximum command line buffer length (bytes).
40
40
- `max_cmdline_args`: Maximum number of arguments parsed.
0 commit comments