mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-04 21:24:32 +02:00
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:
Submodule components/openthread/lib updated: 01a326d950...1f6e937b50
@@ -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
|
||||
|
||||
/**
|
||||
|
@@ -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));
|
||||
|
||||
|
Reference in New Issue
Block a user