|Size for module message queue. |
|Server port; use RFC 7252 default if not defined. |
|Size of the buffer used to build a CoAP request or response. |
|Reduce payload length by this value for a request. More...|
|Reduce payload length by this value for a response. More...|
|Reduce payload length by this value for an observe notification. More...|
|Maximum number of requests awaiting a response. |
|Length in bytes for a token. More...|
|#define||GCOAP_RECV_TIMEOUT (1 * US_PER_SEC)|
|Time in usec that the event loop waits for an incoming CoAP message. |
|Default time to wait for a non-confirmable response [in usec]. More...|
|Maximum number of Observe clients. |
|Maximum number of registrations for Observable resources. |
|Width in bytes of the Observe option value for a notification. More...|
|Count of PDU buffers available for resending confirmable messages. |
|#define GCOAP_NON_TIMEOUT (5000000U)|
|#define GCOAP_OBS_OPTIONS_BUF (4)|
|#define GCOAP_OBS_VALUE_WIDTH (3)|
Width in bytes of the Observe option value for a notification.
This width is used to determine the length of the 'tick' used to measure the time between observable changes to a resource. A tick is expressed internally as GCOAP_OBS_TICK_EXPONENT, which is the base-2 log value of the tick length in microseconds.
The canonical setting for the value width is 3 (exponent 5), which results in a tick length of 32 usec, per sec. 3.4, 4.4 of the RFC. Width 2 (exponent 16) results in a tick length of ~65 msec, and width 1 (exponent 24) results in a tick length of ~17 sec.
The tick length must be short enough so that the Observe value strictly increases for each new notification. The purpose of the value is to allow a client to detect message reordering within the network latency period (128 sec). For resources that change only slowly, the reduced message length is useful when packet size is limited.
|#define GCOAP_REQ_OPTIONS_BUF (4)|
|#define GCOAP_RESP_OPTIONS_BUF (4)|