-
Notifications
You must be signed in to change notification settings - Fork 121
Open
Labels
Description
Answers checklist.
- I have read the component documentation ESP-IDF Components and the issue is not addressed there.
- I am using target and esp-idf version as defined in component's idf_component.yml
- I have searched the issue tracker for a similar issue and not found any related issue.
Which component are you using? If you choose Other, provide details in More Information.
esp_cli
ESP-IDF version.
5.5.1 (stable)
Development Kit.
ESP32C3 devkit
Used Component version.
0.1.0 (latest)
More Information.
Problem description
The example code for the esp_cli component calls esp_linenoise_create and esp_cli_commands_create without any parameters. These functions either do not exist or do not exist in the form called. A compiler error occurs and the component is mostly useless without rewriting or correcting.
user@host:~/espcliexample$ idf.py build
espcliexample/main/espcliexample.c:36:61: error: implicit declaration of function 'esp_cli_commands_create'; did you mean 'esp_cli_commands_execute'? [-Wimplicit-function-declaration]
36 | esp_cli_command_set_handle_t esp_cli_commands_cmd_set = esp_cli_commands_create();
| ^~~~~~~~~~~~~~~~~~~~~~~
| esp_cli_commands_execute
espcliexample/main/espcliexample.c:36:61: error: initialization of 'esp_cli_command_set_handle_t' {aka 'struct esp_cli_command_sets *'} from 'int' makes pointer from integer without a cast [-Wint-conversion]
Expected outcome
The example code would work correctly after installing idf.py add-dependency espressif/esp_cli.
Actual outcome
Compiler error (see above.)