CoapRequest.execute()

DESCRIPTION

Execute a CoAP request synchronously.

When the function returns, the CoapResponse object is populated with response data and ready to use. The response can indicate a remote error. If an error occurs that prevents creating a response with a status code, an exception is thrown.

DECLARATION

    public func execute() throws -> CoapResponse 

THROWS ERRORS

NabtoEdgeClientError:
if a response could not be created