nabto_device_limit_coap_server_requests()

DESCRIPTION

Limit maximum number of concurrent coap server requests.

Clients can make make requests to the coap server. This defines the maximum allowed number of concurrent requests.

If the limit is reached the clients coap requests will fail with coap status SERVICE_UNAVAILABLE 5.03 with an appropriate error description.

DECLARATION

NABTO_DEVICE_DECL_PREFIX NabtoDeviceError NABTO_DEVICE_API
nabto_device_limit_coap_server_requests(NabtoDevice* device, size_t limit)

PARAMETERS

device:
[in] The device.
limit:
[in] The maximum number of concurrent coap server requests.

RETURNS

NABTO_DEVICE_EC_OK iff ok