mirror of
https://github.com/alexandrebobkov/ESP-Nodes.git
synced 2025-08-11 19:00:16 +00:00
ESP32-Console
This commit is contained in:
@@ -31,7 +31,7 @@ static int do_info_cmd (int argc, char **argv) {
|
|||||||
static void register_info (void) {
|
static void register_info (void) {
|
||||||
info_args.detail = arg_str1(NULL, NULL, "<temp>", "Chip temperature");
|
info_args.detail = arg_str1(NULL, NULL, "<temp>", "Chip temperature");
|
||||||
info_args.end = arg_end(2);
|
info_args.end = arg_end(2);
|
||||||
|
|
||||||
const esp_console_cmd_t info_cmd = {
|
const esp_console_cmd_t info_cmd = {
|
||||||
.command = "info",
|
.command = "info",
|
||||||
.help = "System Information",
|
.help = "System Information",
|
||||||
@@ -39,6 +39,8 @@ static void register_info (void) {
|
|||||||
.func = &do_info_cmd,
|
.func = &do_info_cmd,
|
||||||
.argtable = &info_args
|
.argtable = &info_args
|
||||||
};
|
};
|
||||||
|
|
||||||
|
ESP_ERROR_CHECK(esp_console_cmd_register(&info_cmd));
|
||||||
}
|
}
|
||||||
|
|
||||||
void register_commands (void) {
|
void register_commands (void) {
|
||||||
|
Reference in New Issue
Block a user