mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04: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:
commit
8d51f554db
@ -1 +1 @@
|
||||
Subproject commit 01a326d9501b2757b4e04a900e6540c048f41b29
|
||||
Subproject commit 1f6e937b5035291645265e0fe31fd587cc1f88c0
|
@ -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));
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user