[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:
Jonathan Hui
2021-03-02 11:30:37 -08:00
parent 93b6fea3aa
commit 38ae36271c
19 changed files with 155 additions and 148 deletions
+1 -1
View File
@@ -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