ot::Coap::CoapBase::NewPriorityConfirmablePostMessage() method
Allocates and initializes a new CoAP Confirmable Post message with Network Control priority level. The CoAP header is initialized as `kTypeConfirmable` and `kCodePost` with a given URI path and a randomly generated token (of default length). This method also sets the payload marker (`SetPayloadMarker()` on message. Even if message has no payload, calling `SetPayloadMarker()` is harmless, since `SendMessage()` will check and remove the payload marker when there is no payload.
Return value
A pointer to the message or `nullptr` if failed to allocate message.
ot::Coap::CoapBase::NewPriorityConfirmablePostMessage() calls 2 functions:
![]()
ot::Coap::CoapBase::NewPriorityConfirmablePostMessage()
ot::Coap::CoapBase::NewPriorityConfirmablePostMessage() reads 1 variable:
![]()
ot::Coap::CoapBase::NewPriorityConfirmablePostMessage()