From 62f49467729b1eb3b6660e05da68676d35114c73 Mon Sep 17 00:00:00 2001 From: Ken Bannister <kb2ma@runbox.com> Date: Fri, 4 Jan 2019 19:43:18 -0500 Subject: [PATCH] net/coap: improve message code macros --- sys/include/net/coap.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/sys/include/net/coap.h b/sys/include/net/coap.h index 23a4db50bd..644b6ffc4b 100644 --- a/sys/include/net/coap.h +++ b/sys/include/net/coap.h @@ -86,6 +86,7 @@ extern "C" { #define COAP_CODE_204 ((2 << 5) | 4) #define COAP_CODE_CONTENT ((2 << 5) | 5) #define COAP_CODE_205 ((2 << 5) | 5) +#define COAP_CODE_CONTINUE ((2 << 5) | 31) #define COAP_CODE_231 ((2 << 5) | 31) /** @} */ @@ -103,9 +104,9 @@ extern "C" { #define COAP_CODE_METHOD_NOT_ALLOWED ((4 << 5) | 5) #define COAP_CODE_NOT_ACCEPTABLE ((4 << 5) | 6) #define COAP_CODE_REQUEST_ENTITY_INCOMPLETE ((4 << 5) | 8) -#define COAP_CODE_PRECONDITION_FAILED ((4 << 5) | 0xC) -#define COAP_CODE_REQUEST_ENTITY_TOO_LARGE ((4 << 5) | 0xD) -#define COAP_CODE_UNSUPPORTED_CONTENT_FORMAT ((4 << 5) | 0xF) +#define COAP_CODE_PRECONDITION_FAILED ((4 << 5) | 12) +#define COAP_CODE_REQUEST_ENTITY_TOO_LARGE ((4 << 5) | 13) +#define COAP_CODE_UNSUPPORTED_CONTENT_FORMAT ((4 << 5) | 15) /** @} */ /** -- GitLab