mirror of
https://github.com/obgm/libcoap.git
synced 2026-11-12 03:40:39 +03:00
Merge pull request #715 from mrdeep1/remove_slash
coap_resource_init: Leading '/' is not required for uri_path
This commit is contained in:
2 files changed
+4
-2
No files matched your search
@@ -83,7 +83,8 @@ typedef void (*coap_method_handler_t)
|
||||
* variable of coap_str_const_t has to point to constant text, or point to data
|
||||
* within the allocated coap_str_const_t parameter.
|
||||
*
|
||||
* @param uri_path The string URI path of the new resource.
|
||||
* @param uri_path The string URI path of the new resource. The leading '/' is
|
||||
* not normally required - e.g. just "full/path/for/resource".
|
||||
* @param flags Flags for memory management (in particular release of
|
||||
* memory). Possible values:@n
|
||||
*
|
||||
|
||||
@@ -91,7 +91,8 @@ handle matching the URI which then can be Observable.
|
||||
|
||||
The *coap_resource_init*() function returns a newly created _resource_ of
|
||||
type _coap_resource_t_ * . _uri_path_ specifies the uri string path to match
|
||||
against. _flags_ is used to define whether the
|
||||
against. Normally there is no need for the leading '/' - e.g. just
|
||||
"full/path/for/resource". _flags_ is used to define whether the
|
||||
_resource_ is of type Confirmable Message or Non-Confirmable Message for
|
||||
any "observe" responses. See *coap_observe*(3).
|
||||
_flags_ can be one of the following definitions or'ed together.
|
||||
|
||||
Reference in new issue
Block a user