openthread: support discovery delegate in border router

pull/7536/head
Jiacheng Guo 2021-09-01 20:34:12 +08:00
rodzic e215ea5bd2
commit 51372704bf
3 zmienionych plików z 16 dodań i 2 usunięć

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

Wyświetl plik

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

Wyświetl plik

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