ot::Settings::ReadOperationalDataset() const method
Reads the Operational Dataset (active or pending).
Arguments
aType
The Dataset type (active or pending) to read.
aDataset
A reference to a `Dataset` object to output the read content.
Return value
kErrorNone Successfully read the Dataset. kErrorNotFound No corresponding value in the setting store.