12 #ifndef COAP_SUBSCRIBE_H_ 13 #define COAP_SUBSCRIBE_H_ 29 #define COAP_OBSERVE_ESTABLISH 0 35 #define COAP_OBSERVE_CANCEL 1 37 #ifndef COAP_OBS_MAX_NON 43 #define COAP_OBS_MAX_NON 5 46 #ifndef COAP_OBS_MAX_FAIL 52 #define COAP_OBS_MAX_FAIL 3
struct coap_subscription_t * next
next element in linked list
Coap string data definition.
size_t token_length
actual length of token
struct coap_subscription_t coap_subscription_t
Subscriber information.
Representation of network addresses.
unsigned int non_cnt
up to 15 non-confirmable notifies allowed
coap_block_t block2
GET request Block2 definition.
Structure of Block options.
unsigned int dirty
set if the notification temporarily could not be sent (in that case, the resource's partially dirty f...
coap_session_t * session
subscriber session
unsigned int has_block2
GET request had Block2 definition.
coap_string_t * query
query string used for subscription, if any
unsigned int fail_cnt
up to 3 confirmable notifies can fail
unsigned char token[8]
token used for subscription
void coap_subscription_init(coap_subscription_t *)