• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * subscribe.h -- subscription handling for CoAP
3  *                see RFC7641
4  *
5  * Copyright (C) 2010-2012,2014-2015 Olaf Bergmann <bergmann@tzi.org>
6  *
7  * This file is part of the CoAP library libcoap. Please see README for terms
8  * of use.
9  */
10 
11 /**
12  * @file subscribe.h
13  * @brief Defines the application visible subscribe information
14  */
15 
16 #ifndef COAP_SUBSCRIBE_H_
17 #define COAP_SUBSCRIBE_H_
18 
19 /**
20  * @defgroup observe Resource observation
21  * API functions for interfacing with the observe handling (RFC7641)
22  * @{
23  */
24 
25 /**
26  * The value COAP_OBSERVE_ESTABLISH in a GET request indicates a new observe
27  * relationship for (sender address, token) is requested.
28  */
29 #define COAP_OBSERVE_ESTABLISH 0
30 
31 /**
32  * The value COAP_OBSERVE_CANCEL in a GET request indicates that the observe
33  * relationship for (sender address, token) must be cancelled.
34  */
35 #define COAP_OBSERVE_CANCEL 1
36 
37 /** @} */
38 
39 #endif /* COAP_SUBSCRIBE_H_ */
40