From 7bd9e68867b83b06b0b7274dfa8db0445eaddb1c Mon Sep 17 00:00:00 2001 From: Koen Zandberg Date: Fri, 19 Oct 2018 23:23:31 +0200 Subject: [PATCH] nanocoap: Add method flags for rfc8132 --- sys/include/net/nanocoap.h | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/sys/include/net/nanocoap.h b/sys/include/net/nanocoap.h index 213121fdf3..79b2f55d22 100644 --- a/sys/include/net/nanocoap.h +++ b/sys/include/net/nanocoap.h @@ -101,10 +101,13 @@ extern "C" { * @name Nanocoap specific CoAP method flags used in coap_handlers array * @{ */ -#define COAP_GET (0x1) -#define COAP_POST (0x2) -#define COAP_PUT (0x4) -#define COAP_DELETE (0x8) +#define COAP_GET (0x01) +#define COAP_POST (0x02) +#define COAP_PUT (0x04) +#define COAP_DELETE (0x08) +#define COAP_FETCH (0x10) +#define COAP_PATCH (0x20) +#define COAP_IPATCH (0x40) #define COAP_MATCH_SUBTREE (0x8000) /**< Path is considered as a prefix when matching */ /** @} */