openthread: add a force_dataset option to ignore the one saved in non-volatile storage

This commit is contained in:
Mathieu Rene 2024-11-22 23:14:00 -05:00
parent 76632f96c7
commit e07af7dc10

View File

@ -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)