我想尝试 esp-idf-master(https://github.com/espressif/esp-idf) 控制台示例(\esp-idf-master\examples\system\console\basic) 在 VS code中使用 platformio 。
三个库(cmd_system, cmd_wifi & cmd_nvs)拷贝至“lib”文件夹中。
但是,我在编译时遇到问题。
Code: Select all
src/main.c: In function 'app_main':
src/main.c:68:16: error: 'esp_console_repl_config_t' {aka 'struct <anonymous>'} has no member named 'max_cmdline_length'
repl_config.max_cmdline_length = CONFIG_CONSOLE_MAX_COMMAND_LINE_LENGTH;
^
src/main.c:68:38: error: 'CONFIG_CONSOLE_MAX_COMMAND_LINE_LENGTH' undeclared (first use in this function); did you mean 'CONFIG_SPIFFS_USE_MAGIC_LENGTH'?
repl_config.max_cmdline_length = CONFIG_CONSOLE_MAX_COMMAND_LINE_LENGTH;
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
CONFIG_SPIFFS_USE_MAGIC_LENGTH
src/main.c:68:38: note: each undeclared identifier is reported only once for each function it appears in