ot::Coap::Message::SetPayloadMarker() method
Adds Payload Marker indicating beginning of the payload to the CoAP header. It also set offset to the start of payload.
Syntax
Error SetPayloadMarker(void); Return value
kErrorNone Payload Marker successfully added. kErrorNoBufs Message Payload Marker exceeds the buffer size.