Skip to content
Snippets Groups Projects
Commit fa5ab4ee authored by Ken Bannister's avatar Ken Bannister
Browse files

net/gcoap: Add format option to nanocoap

parent 78164977
No related branches found
No related tags found
No related merge requests found
...@@ -175,7 +175,7 @@ extern "C" { ...@@ -175,7 +175,7 @@ extern "C" {
/** /**
* @brief Nanocoap-specific value to indicate no format specified * @brief Nanocoap-specific value to indicate no format specified
*/ */
#define COAP_FORMAT_NONE (65535) #define COAP_FORMAT_NONE (UINT16_MAX)
/** /**
* @name Nanocoap specific maximum values * @name Nanocoap specific maximum values
......
...@@ -38,6 +38,12 @@ ...@@ -38,6 +38,12 @@
#define GCOAP_RESOURCE_WRONG_METHOD -1 #define GCOAP_RESOURCE_WRONG_METHOD -1
#define GCOAP_RESOURCE_NO_PATH -2 #define GCOAP_RESOURCE_NO_PATH -2
/*
* gcoap internal Content-Format option value. Not intended for use in a
* transmitted packet. Must be a 3-byte unsigned value.
*/
#define COAP_FORMAT_NO_PAYLOAD (UINT16_MAX + 1)
/* Internal functions */ /* Internal functions */
static void *_event_loop(void *arg); static void *_event_loop(void *arg);
static void _listen(sock_udp_t *sock); static void _listen(sock_udp_t *sock);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment