mirror of
https://github.com/esphome/esphome.git
synced 2024-11-27 01:08:03 +01:00
openthread: add a force_dataset option to ignore the one saved in non-volatile storage
This commit is contained in:
parent
76632f96c7
commit
e07af7dc10
1 changed files with 4 additions and 0 deletions
|
@ -56,6 +56,10 @@ def set_sdkconfig_options(config):
|
|||
"CONFIG_OPENTHREAD_NETWORK_PSKC", f"{config[CONF_PSKC]}"
|
||||
)
|
||||
|
||||
if CONF_FORCE_DATASET in config:
|
||||
if config[CONF_FORCE_DATASET]:
|
||||
cg.add_define("CONFIG_OPENTHREAD_FORCE_DATASET")
|
||||
|
||||
add_idf_sdkconfig_option("CONFIG_OPENTHREAD_DNS64_CLIENT", True)
|
||||
add_idf_sdkconfig_option("CONFIG_OPENTHREAD_SRP_CLIENT", True)
|
||||
add_idf_sdkconfig_option("CONFIG_OPENTHREAD_SRP_CLIENT_MAX_SERVICES", 5)
|
||||
|
|
Loading…
Reference in a new issue