Merge branch 'feature/set_default_netif_for_openthread_cli' into 'master'

openthread: set ot-netif as the default netif for cli example

See merge request espressif/esp-idf!22237
This commit is contained in:
Zhang Wen Xu 2023-02-07 15:18:14 +08:00
commit 32673e888e

View File

@ -77,6 +77,7 @@ static void ot_task_worker(void *aContext)
esp_netif_t *openthread_netif;
// Initialize the esp_netif bindings
openthread_netif = init_openthread_netif(&config);
esp_netif_set_default_netif(openthread_netif);
#if CONFIG_OPENTHREAD_CLI_ESP_EXTENSION
esp_cli_custom_command_init();