Connection.createCoapRequest()

DESCRIPTION

Create a new CoAP request on this connection. Request must subsequently be executed.

DECLARATION

    public func createCoapRequest(method: String, path: String) throws -> CoapRequest 

PARAMETERS

method:
The CoAP method (either GET. POST, PUT or DELETE)
path:
The CoAP path (e.g., /heatpump/temperature)

ERRORS

Throws the following errors:

ALLOCATION_ERROR:
if the request could not be created.

RETURN VALUES

None.

EXAMPLES

None.