mirror of
https://github.com/espressif/openthread.git
synced 2026-06-06 05:24:51 +00:00
[dataset] change updater to use DatasetManager (#6227)
This commit changes the dataset updater implementation to leverage MeshCoP::DatasetManager, which already provides a mechanism to communicate Pending Dataset updates with the Leader. The DatasetManager implementation ensures that only one CoAP transaction is outstanding at a time. This commit also ensures that any unspecified values are copied from the Active Dataset.
This commit is contained in:
@@ -147,7 +147,7 @@ void Notifier::EmitEvents(void)
|
||||
Get<Utils::ChildSupervisor>().HandleNotifierEvents(events);
|
||||
#endif
|
||||
#if OPENTHREAD_CONFIG_DATASET_UPDATER_ENABLE || OPENTHREAD_CONFIG_CHANNEL_MANAGER_ENABLE
|
||||
Get<Utils::DatasetUpdater>().HandleNotifierEvents(events);
|
||||
Get<MeshCoP::DatasetUpdater>().HandleNotifierEvents(events);
|
||||
#endif
|
||||
#endif // OPENTHREAD_FTD
|
||||
#if OPENTHREAD_FTD || OPENTHREAD_CONFIG_BORDER_ROUTER_ENABLE || OPENTHREAD_CONFIG_TMF_NETDATA_SERVICE_ENABLE
|
||||
|
||||
Reference in New Issue
Block a user