nabto_device_virtual_coap_request_new()

DESCRIPTION

Create a virtual CoAP request.

DECLARATION

    NABTO_DEVICE_DECL_PREFIX NabtoDeviceVirtualCoapRequest* NABTO_DEVICE_API
        nabto_device_virtual_coap_request_new(NabtoDeviceVirtualConnection* connection, NabtoDeviceCoapMethod method, const char* path)

PARAMETERS

connection:
[in] The virtual connection to make the CoAP request on, the connection needs to be kept alive until the request has been freed.
method:
[in] The method of the CoAP request
path:
[in] The URI path element of the resource being requested. It has to start with a '/' character. The string "/" is the root path. The string is copied into the CoAP request.

RETURNS

NULL if the request could not be created, non NULL otherwise.