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.

THROWS ERRORS

NabtoEdgeClientError.FAILED:
if payload could not be set