mirror of
https://github.com/espressif/openthread.git
synced 2026-07-08 21:30:24 +00:00
[api] update message API to create message with priority (#3199)
This commit is contained in:
committed by
Jonathan Hui
parent
f5fdf506ad
commit
f8909593a9
+1
-1
@@ -1849,7 +1849,7 @@ void Interpreter::HandlePingTimer()
|
||||
otMessage * message;
|
||||
const otMessageInfo *messageInfo = static_cast<const otMessageInfo *>(&mMessageInfo);
|
||||
|
||||
VerifyOrExit((message = otIp6NewMessage(mInstance, true)) != NULL, error = OT_ERROR_NO_BUFS);
|
||||
VerifyOrExit((message = otIp6NewMessage(mInstance, NULL)) != NULL, error = OT_ERROR_NO_BUFS);
|
||||
SuccessOrExit(error = otMessageAppend(message, ×tamp, sizeof(timestamp)));
|
||||
SuccessOrExit(error = otMessageSetLength(message, mLength));
|
||||
SuccessOrExit(error = otIcmp6SendEchoRequest(mInstance, message, messageInfo, 1));
|
||||
|
||||
Reference in New Issue
Block a user