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.
public func execute() throws -> CoapResponse
Throws the following errors:
- if a response could not be created