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 the contentFormat parameter.

ERRORS

  • T:Nabto.Edge.Client.NabtoException: Thrown with error code FAILED if payload could not be set