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:
parent
78164977d8
commit
fa5ab4eeb6
@ -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
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user