esp_console_cmd_register() function
Register console command
Arguments
cmd
pointer to the command description; can point to a temporary value
Return value
- ESP_OK on success - ESP_ERR_NO_MEM if out of memory - ESP_ERR_INVALID_ARG if command description includes invalid arguments - ESP_ERR_INVALID_ARG if both func and func_w_context members of cmd are non-NULL - ESP_ERR_INVALID_ARG if both func and func_w_context members of cmd are NULL
Notes
If the member \c func_w_context of cmd is set instead of func, then the member \c context is passed to the function pointed to by \c func_w_context.
esp_console_cmd_register() is called by 14 functions and calls 7 functions:
![]()
esp_console_cmd_register()
esp_console_cmd_register() reads 10 variables and writes 7 variables:
![]()
esp_console_cmd_register()