diff --git a/include/coap/pdu.h b/include/coap/pdu.h index 7ed482deee..2ac55b97e9 100644 --- a/include/coap/pdu.h +++ b/include/coap/pdu.h @@ -51,6 +51,9 @@ #define COAP_REQUEST_POST 2 #define COAP_REQUEST_PUT 3 #define COAP_REQUEST_DELETE 4 +#define COAP_REQUEST_FETCH 5 /* RFC 8132 */ +#define COAP_REQUEST_PATCH 6 /* RFC 8132 */ +#define COAP_REQUEST_IPATCH 7 /* RFC 8132 */ /* CoAP option types (be sure to update check_critical when adding options */ diff --git a/src/debug.c b/src/debug.c index 87880c2903..cc611fe40c 100644 --- a/src/debug.c +++ b/src/debug.c @@ -271,7 +271,8 @@ msg_type_string(unsigned short t) { /** Returns a textual description of the method or response code. */ static const char * msg_code_string(unsigned short c) { - static char *methods[] = { "0.00", "GET", "POST", "PUT", "DELETE", "PATCH" }; + static char *methods[] = { "0.00", "GET", "POST", "PUT", "DELETE", + "FETCH", "PATCH", "iPATCH" }; static char buf[5]; if (c < sizeof(methods)/sizeof(char *)) {