35 #ifndef MESHCOP_DATASET_HPP_ 36 #define MESHCOP_DATASET_HPP_ 94 const uint8_t *
GetBytes(
void)
const {
return mTlvs; }
108 uint16_t
GetSize(
void)
const {
return mLength; }
199 uint16_t GetSettingsKey(
void);
201 void Remove(uint8_t *aStart, uint8_t aLength);
204 uint32_t mUpdateTime;
212 #endif // MESHCOP_DATASET_HPP_
Dataset(const Tlv::Type aType)
This constructor initializes the object.
Definition: dataset.cpp:48
This file includes definitions for locator class for OpenThread objects.
const Timestamp * GetTimestamp(void) const
This method returns a reference to the Timestamp.
Definition: dataset.cpp:367
void Remove(Tlv::Type aType)
This method removes a TLV from the Dataset.
Definition: dataset.cpp:448
otError Set(const Tlv &aTlv)
This method sets a TLV in the Dataset.
Definition: dataset.cpp:406
Maximum size of MeshCoP Dataset (bytes)
Definition: dataset.hpp:54
This file includes definitions for generating and processing MeshCoP TLVs.
This class represents a message.
Definition: message.hpp:195
uint32_t GetUpdateTime(void) const
This method returns the local time the dataset was last updated.
Definition: dataset.hpp:116
const uint8_t * GetBytes(void) const
This method returns a pointer to the byte representation of the Dataset.
Definition: dataset.hpp:94
uint16_t GetSize(void) const
This method returns the Dataset size in bytes.
Definition: dataset.hpp:108
otError AppendMleDatasetTlv(Message &aMessage) const
This method appends the MLE Dataset TLV but excluding MeshCoP Sub Timestamp TLV.
Definition: dataset.cpp:459
This file includes definitions for the message buffer pool and message buffers.
void Clear(void)
This method clears the Dataset.
Definition: dataset.cpp:56
Definition: dataset_local.hpp:47
This class implements MeshCoP TLV generation and parsing.
Definition: meshcop_tlvs.hpp:62
void SetTimestamp(const Timestamp &aTimestamp)
This method sets the Timestamp value.
Definition: dataset.cpp:388
Tlv * Get(Tlv::Type aType)
This method returns a pointer to the TLV.
Definition: dataset.cpp:61
This class implements Timestamp generation and parsing.
Definition: timestamp.hpp:56
This structure represents an Active or Pending Operational Dataset.
Definition: types.h:552
otError
This enumeration represents error codes used throughout OpenThread.
Definition: types.h:107
This file includes compile-time configuration constants for OpenThread.
Type
MeshCoP TLV Types.
Definition: meshcop_tlvs.hpp:69
Definition: dataset.hpp:47