mirror of
https://github.com/espressif/openthread.git
synced 2026-08-05 02:17:47 +00:00
[netdata] remove mType in NetworkData class (#6977)
This commit simplifies the `NetworkData` class by removing the `mType` Instead we add a new parameter in `SendServerDataNotification()` which indicates whether to append the Network Data TLV to the message or not (which was previously determined by `mType`).
This commit is contained in:
@@ -68,7 +68,7 @@ void TestNetworkDataIterator(void)
|
||||
{
|
||||
public:
|
||||
TestNetworkData(ot::Instance *aInstance, const uint8_t *aTlvs, uint8_t aTlvsLength)
|
||||
: NetworkData(*aInstance, kTypeLeader)
|
||||
: NetworkData(*aInstance)
|
||||
{
|
||||
memcpy(mTlvs, aTlvs, aTlvsLength);
|
||||
mLength = aTlvsLength;
|
||||
|
||||
Reference in New Issue
Block a user