Merge branch 'feature/otbr-discovery-delegate' into 'master'

openthread: support discovery delegate in border router

See merge request espressif/esp-idf!15041
This commit is contained in:
Guo Jia Cheng 2021-09-06 09:29:09 +00:00
commit 8d51f554db
3 changed files with 16 additions and 2 deletions

@ -1 +1 @@
Subproject commit 01a326d9501b2757b4e04a900e6540c048f41b29
Subproject commit 1f6e937b5035291645265e0fe31fd587cc1f88c0

View File

@ -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
/**

View File

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