mirror of
https://github.com/obgm/libcoap.git
synced 2026-11-07 10:12:53 +03:00
flags option in coap_resource_init documented
This commit is contained in:
1 parent
edf42a6a53
commit
3c83ec8087
1 file changed
+6
-2
@@ -102,8 +102,12 @@ typedef struct coap_resource_t {
|
||||
*
|
||||
* @param uri The URI path of the new resource.
|
||||
* @param len The length of @p uri.
|
||||
* @param flags Flags for memory management (in particular release of memory).
|
||||
*
|
||||
* @param flags Flags for memory management (in particular release of memory). Possibly values:@n
|
||||
* COAP_RESOURCE_FLAGS_RELEASE_URI If this flag is set, the URI passed to coap_resource_init() is free'd by coap_delete_resource()@n
|
||||
* COAP_RESOURCE_FLAGS_NOTIFY_CON If this flag is set, coap-observe notifications will be sent confirmable by default.@n
|
||||
* COAP_RESOURCE_FLAGS_NOTIFY_NON (default) If this flag is set, coap-observe notifications will be sent non-confirmable by default.@n
|
||||
* If flags is set to 0 then the COAP_RESOURCE_FLAGS_NOTIFY_NON is considered.
|
||||
*
|
||||
* @return A pointer to the new object or @c NULL on error.
|
||||
*/
|
||||
coap_resource_t *coap_resource_init(const unsigned char *uri,
|
||||
|
||||
Reference in new issue
Block a user