mirror of
https://github.com/espressif/openthread.git
synced 2026-09-13 04:30:08 +00:00
[network-data] ensure DATA_RESUBMIT_DELAY between SRV_DATA.ntf (#4485)
This commit is contained in:
@@ -977,7 +977,7 @@ otError NetworkData::SendServerDataNotification(uint16_t aRloc16)
|
||||
Coap::Message * message = NULL;
|
||||
Ip6::MessageInfo messageInfo;
|
||||
|
||||
VerifyOrExit(mLastAttempt.GetValue() == 0 || ((TimerMilli::GetNow() - mLastAttempt) < kDataResubmitDelay),
|
||||
VerifyOrExit(mLastAttempt.GetValue() == 0 || ((TimerMilli::GetNow() - mLastAttempt) > kDataResubmitDelay),
|
||||
error = OT_ERROR_ALREADY);
|
||||
|
||||
VerifyOrExit((message = Get<Coap::Coap>().NewMessage()) != NULL, error = OT_ERROR_NO_BUFS);
|
||||
|
||||
Reference in New Issue
Block a user