mirror of
https://github.com/obgm/libcoap.git
synced 2026-11-03 08:25:47 +03:00
resource.h: Add documentation for flags used in resources creation.
This commit is contained in:
1 parent
edf42a6a53
commit
02c3e67175
1 file changed
+11
@@ -57,8 +57,19 @@ typedef struct coap_attr_t {
|
||||
int flags;
|
||||
} coap_attr_t;
|
||||
|
||||
/** The URI passed to coap_resource_init() is free'd by coap_delete_resource(). */
|
||||
#define COAP_RESOURCE_FLAGS_RELEASE_URI 0x1
|
||||
|
||||
/**
|
||||
* Notifications will be sent non-confirmable by default. RFC 7641 Section 4.5
|
||||
* https://tools.ietf.org/html/rfc7641#section-4.5
|
||||
*/
|
||||
#define COAP_RESOURCE_FLAGS_NOTIFY_NON 0x0
|
||||
|
||||
/**
|
||||
* Notifications will be sent confirmable by default. RFC 7641 Section 4.5
|
||||
* https://tools.ietf.org/html/rfc7641#section-4.5
|
||||
*/
|
||||
#define COAP_RESOURCE_FLAGS_NOTIFY_CON 0x2
|
||||
|
||||
typedef struct coap_resource_t {
|
||||
|
||||
Reference in new issue
Block a user