ot::MeshCoP::Dataset::WriteTlv() method
Writes a TLV to the Dataset. If the specified TLV type already exists, it will be replaced. Otherwise, the TLV will be appended.
Arguments
aTlv
A reference to the TLV.
Return value
kErrorNone Successfully updated the TLV. kErrorNoBufs Could not add the TLV due to insufficient buffer space.