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

This commit is contained in:
zhangwenxu 2023-02-03 16:27:40 +08:00
parent 4e2c6ac993
commit 65c6ed8eeb

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();