Merge branch 'add_openthread_srp_client_option' into 'master'

openthread : update openthread submodule

See merge request espressif/esp-idf!15161
This commit is contained in:
Shu Chen
2021-09-14 14:39:51 +00:00
8 changed files with 51 additions and 4 deletions

View File

@@ -192,6 +192,24 @@ void esp_ieee802154_get_extended_address(uint8_t *ext_addr);
*/
void esp_ieee802154_set_extended_address(const uint8_t *ext_addr);
/**
* @brief Get the device coordinator.
*
* @return
* - True The coordinator is enabled.
* - False The coordinator is disabled.
*
*/
bool esp_ieee802154_get_coordinator(void);
/**
* @brief Set the device coordinator role.
*
* @param[in] enable The coordinator role to be set.
*
*/
void esp_ieee802154_set_coordinator(bool enable);
/**
* @brief Get the auto frame pending mode.
*

View File

@@ -62,6 +62,7 @@ typedef enum {
ESP_IEEE802154_AUTO_PENDING_DISABLE, /*!< Frame pending bit always set to 1 in the ack to Data Request */
ESP_IEEE802154_AUTO_PENDING_ENABLE, /*!< Frame pending bit set to 1 if src address matches, in the ack to Data Request */
ESP_IEEE802154_AUTO_PENDING_ENHANCED, /*!< Frame pending bit set to 1 if src address matches, in all ack frames */
ESP_IEEE802154_AUTO_PENDING_ZIGBEE, /*!< Frame pending bit set to 0 only if src address is short address and matches in table, in the ack to Data Request */
} esp_ieee802154_pending_mode_t;
/**

View File

@@ -77,6 +77,14 @@ menu "OpenThread"
Select this option to enable Joiner in OpenThread. This allows a device to join the Thread network with a
pre-shared key using the Thread commissioning protocol.
config OPENTHREAD_SRP_CLIENT
bool "Enable SRP Client"
depends on OPENTHREAD_ENABLED
default n
help
Select this option to enable SRP Client in OpenThread. This allows a device to register SRP services to SRP
Server.
config OPENTHREAD_BORDER_ROUTER
bool "Enable Border Router"
depends on OPENTHREAD_ENABLED

View File

@@ -126,6 +126,16 @@
#define OPENTHREAD_CONFIG_HEAP_EXTERNAL_ENABLE 1
#endif
/**
* @def OPENTHREAD_CONFIG_TCP_ENABLE
*
* Define to 0 to disable TCP
*
*/
#ifndef OPENTHREAD_CONFIG_TCP_ENABLE
#define OPENTHREAD_CONFIG_TCP_ENABLE 0
#endif
#if CONFIG_OPENTHREAD_BORDER_ROUTER
/**
@@ -375,6 +385,16 @@
#define OPENTHREAD_CONFIG_DIAG_ENABLE 1
#endif
#if CONFIG_OPENTHREAD_SRP_CLIENT
#ifndef OPENTHREAD_CONFIG_ECDSA_ENABLE
#define OPENTHREAD_CONFIG_ECDSA_ENABLE 1
#endif
#ifndef OPENTHREAD_CONFIG_SRP_CLIENT_ENABLE
#define OPENTHREAD_CONFIG_SRP_CLIENT_ENABLE 1
#endif
#endif
#if CONFIG_OPENTHREAD_FTD
#define OPENTHREAD_FTD 1
#elif CONFIG_OPENTHREAD_MTD