ot::Message::SetPriority() method
Sets the messages priority. If the message is already queued in a priority queue, changing the priority ensures to update the message in the associated queue.
Arguments
aPriority
The message priority level.
Return value
kErrorNone Successfully set the priority for the message. kErrorInvalidArgs Priority level is not invalid.