ICoapRequest.SetRequestPayload()
DESCRIPTION
Set payload and content format for the payload.
DECLARATION
Void SetRequestPayload(UInt16, Byte[])
PARAMETERS
contentFormat
: See https://www.iana.org/assignments/core-parameters/core-parameters.xhtml, some often used values are defined in ContentFormat.data
: Data for the request encoded as specified in thecontentFormat
parameter.
ERRORS
T:Nabto.Edge.Client.NabtoException
: Thrown with error codeFAILED
if payload could not be set