[riot-notifications] [RIOT-OS/RIOT] sys/net/application_layer/nanocoap: Add path prefix option (#11098)

Ken Bannister notifications at github.com
Tue Mar 5 12:09:22 CET 2019

kb2ma commented on this pull request.

> @@ -170,6 +189,8 @@ extern "C" {
 #define COAP_POST               (0x2)
 #define COAP_PUT                (0x4)
 #define COAP_DELETE             (0x8)
+#define COAP_MATCH_SUBTREE      (0x10) /**< Path is considered as a prefix when

Thinking a little more, what's the harm in using 0x8000 for COAP_MATCH_SUBTREE to keep the value in 16 bits? This definition is solely for internal use, so we could change it to a 32 bit quantity in the future if necessary. With this approach we won't need to depend on #10214, where I'm fine with leaving the 'method' definition as unsigned.

You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20190305/c76f757d/attachment.html>

More information about the notifications mailing list