1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-01-18 12:52:44 +01:00

net/gcoap: Add format option to nanocoap

This commit is contained in:
Ken Bannister 2018-05-18 01:36:38 -04:00
parent 78164977d8
commit fa5ab4eeb6
2 changed files with 7 additions and 1 deletions

View File

@ -175,7 +175,7 @@ extern "C" {
/**
* @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

View File

@ -38,6 +38,12 @@
#define GCOAP_RESOURCE_WRONG_METHOD -1
#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 */
static void *_event_loop(void *arg);
static void _listen(sock_udp_t *sock);