Skip to content

Commit

Permalink
Merge branch 'backport/openthread_feature_to_v51' into 'release/v5.1'
Browse files Browse the repository at this point in the history
Openthread: backport some features

See merge request espressif/esp-idf!25113
  • Loading branch information
jack0c committed Aug 2, 2023
2 parents adcc697 + 12f1c16 commit 4cb9554
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,16 @@
#define OPENTHREAD_CONFIG_BORDER_AGENT_ENABLE 1
#endif

/**
* @def OPENTHREAD_CONFIG_BORDER_AGENT_ID_ENABLE
*
* Define to 1 to enable Border Agent ID support.
*
*/
#ifndef OPENTHREAD_CONFIG_BORDER_AGENT_ID_ENABLE
#define OPENTHREAD_CONFIG_BORDER_AGENT_ID_ENABLE 1
#endif

/**
* @def OPENTHREAD_CONFIG_BORDER_ROUTER_ENABLE
*
Expand Down
4 changes: 3 additions & 1 deletion examples/openthread/ot_br/main/esp_ot_br.c
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,9 @@ static void ot_task_worker(void *aContext)

#if CONFIG_OPENTHREAD_BR_AUTO_START
ESP_ERROR_CHECK(esp_openthread_border_router_init());
ESP_ERROR_CHECK(esp_openthread_auto_start(NULL));
otOperationalDatasetTlvs dataset;
otError error = otDatasetGetActiveTlvs(esp_openthread_get_instance(), &dataset);
ESP_ERROR_CHECK(esp_openthread_auto_start((error == OT_ERROR_NONE) ? &dataset : NULL));
#endif // CONFIG_OPENTHREAD_BR_AUTO_START

esp_cli_custom_command_init();
Expand Down

0 comments on commit 4cb9554

Please sign in to comment.