diff --git a/components/openthread/lib b/components/openthread/lib index 01a326d950..1f6e937b50 160000 --- a/components/openthread/lib +++ b/components/openthread/lib @@ -1 +1 @@ -Subproject commit 01a326d9501b2757b4e04a900e6540c048f41b29 +Subproject commit 1f6e937b5035291645265e0fe31fd587cc1f88c0 diff --git a/components/openthread/private_include/openthread-core-esp32x-ftd-config.h b/components/openthread/private_include/openthread-core-esp32x-ftd-config.h index 254672aa88..83be52b03a 100644 --- a/components/openthread/private_include/openthread-core-esp32x-ftd-config.h +++ b/components/openthread/private_include/openthread-core-esp32x-ftd-config.h @@ -188,6 +188,16 @@ #define OPENTHREAD_CONFIG_SRP_SERVER_ENABLE 1 #endif +/** + * @def OPENTHREAD_CONFIG_DNSSD_SERVER_ENABLE + * + * Define to 1 to enable DNS-SD Server support. + * + */ +#ifndef OPENTHREAD_CONFIG_DNSSD_SERVER_ENABLE +#define OPENTHREAD_CONFIG_DNSSD_SERVER_ENABLE 1 +#endif + #endif // CONFIG_OPENTHREAD_BORDER_ROUTER /** diff --git a/examples/openthread/ot_br/main/esp_ot_br.c b/examples/openthread/ot_br/main/esp_ot_br.c index f539db0a2d..53572c7156 100644 --- a/examples/openthread/ot_br/main/esp_ot_br.c +++ b/examples/openthread/ot_br/main/esp_ot_br.c @@ -53,6 +53,8 @@ #define TAG "esp_ot_br" +extern void otAppCliInit(otInstance *aInstance); + static int hex_digit_to_int(char hex) { if ('A' <= hex && hex <= 'F') { @@ -161,6 +163,7 @@ static void ot_task_worker(void *aContext) ESP_ERROR_CHECK(esp_openthread_border_router_init(get_example_netif())); esp_openthread_lock_acquire(portMAX_DELAY); + otAppCliInit(esp_openthread_get_instance()); create_config_network(esp_openthread_get_instance()); esp_openthread_lock_release(); @@ -179,8 +182,9 @@ void app_main(void) // Used eventfds: // * netif // * task queue + // * border router esp_vfs_eventfd_config_t eventfd_config = { - .max_fds = 2, + .max_fds = 3, }; ESP_ERROR_CHECK(esp_vfs_eventfd_register(&eventfd_config));