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 

PARAMETERS

None.

ERRORS

Throws the following errors:

NabtoEdgeClientError:
if a response could not be created

RETURN VALUES

None.

EXAMPLES

None.