libcoap
4.2.0
|
API functions for interfacing with the observe handling (RFC7641) More...
Data Structures | |
struct | coap_subscription_t |
Subscriber information. More... | |
Macros | |
#define | COAP_OBSERVE_ESTABLISH 0 |
The value COAP_OBSERVE_ESTABLISH in a GET request indicates a new observe relationship for (sender address, token) is requested. More... | |
#define | COAP_OBSERVE_CANCEL 1 |
The value COAP_OBSERVE_CANCEL in a GET request indicates that the observe relationship for (sender address, token) must be cancelled. More... | |
#define | COAP_OBS_MAX_NON 5 |
Number of notifications that may be sent non-confirmable before a confirmable message is sent to detect if observers are alive. More... | |
#define | COAP_OBS_MAX_FAIL 3 |
Number of confirmable notifications that may fail (i.e. More... | |
Typedefs | |
typedef struct coap_subscription_t | coap_subscription_t |
Subscriber information. More... | |
Functions | |
void | coap_subscription_init (coap_subscription_t *) |
API functions for interfacing with the observe handling (RFC7641)
#define COAP_OBS_MAX_FAIL 3 |
Number of confirmable notifications that may fail (i.e.
time out without being ACKed) before an observer is removed. The maximum value for COAP_OBS_MAX_FAIL is 3
.
Definition at line 52 of file subscribe.h.
#define COAP_OBS_MAX_NON 5 |
Number of notifications that may be sent non-confirmable before a confirmable message is sent to detect if observers are alive.
The maximum allowed value here is 15
.
Definition at line 43 of file subscribe.h.
#define COAP_OBSERVE_CANCEL 1 |
The value COAP_OBSERVE_CANCEL in a GET request indicates that the observe relationship for (sender address, token) must be cancelled.
Definition at line 35 of file subscribe.h.
#define COAP_OBSERVE_ESTABLISH 0 |
The value COAP_OBSERVE_ESTABLISH in a GET request indicates a new observe relationship for (sender address, token) is requested.
Definition at line 29 of file subscribe.h.
typedef struct coap_subscription_t coap_subscription_t |
Subscriber information.
void coap_subscription_init | ( | coap_subscription_t * | ) |