CoapRequest.setRequestPayloadString()

DESCRIPTION

Convenience function for setting string payloads.

DECLARATION

    public func setRequestPayloadString(contentFormat: UInt16, string: String) throws 

PARAMETERS

contentFormat:
See https://www.iana.org/assignments/core-parameters/core-parameters.xhtml, some often used values are defined in ContentFormat.
string:
String to set as payload.

ERRORS

Throws the following errors:

NabtoEdgeClientError.FAILED:
if payload could not be set

RETURN VALUES

None.

EXAMPLES

None.