mirror of
https://github.com/obgm/libcoap.git
synced 2026-11-16 04:54:55 +03:00
pdu.h: Added Content-Formats from RFC 8428 (SenML)
This commit is contained in:
1 parent
b7772e8dd5
commit
c090fa96dc
2 files changed
+18
No files matched your search
@@ -213,6 +213,16 @@ const char *coap_response_phrase(unsigned char code);
|
||||
#define COAP_MEDIATYPE_APPLICATION_COSE_KEY 101 /* application/cose-key */
|
||||
#define COAP_MEDIATYPE_APPLICATION_COSE_KEY_SET 102 /* application/cose-key-set */
|
||||
|
||||
/* Content formats from RFC 8428 */
|
||||
#define COAP_MEDIATYPE_APPLICATION_SENML_JSON 110 /* application/senml+json */
|
||||
#define COAP_MEDIATYPE_APPLICATION_SENSML_JSON 111 /* application/sensml+json */
|
||||
#define COAP_MEDIATYPE_APPLICATION_SENML_CBOR 112 /* application/senml+cbor */
|
||||
#define COAP_MEDIATYPE_APPLICATION_SENSML_CBOR 113 /* application/sensml+cbor */
|
||||
#define COAP_MEDIATYPE_APPLICATION_SENML_EXI 114 /* application/senml-exi */
|
||||
#define COAP_MEDIATYPE_APPLICATION_SENSML_EXI 115 /* application/sensml-exi */
|
||||
#define COAP_MEDIATYPE_APPLICATION_SENML_XML 310 /* application/senml+xml */
|
||||
#define COAP_MEDIATYPE_APPLICATION_SENSML_XML 311 /* application/sensml+xml */
|
||||
|
||||
/* Note that identifiers for registered media types are in the range 0-65535. We
|
||||
* use an unallocated type here and hope for the best. */
|
||||
#define COAP_MEDIATYPE_ANY 0xff /* any media type */
|
||||
|
||||
@@ -409,6 +409,14 @@ print_content_format(unsigned int format_type,
|
||||
{ COAP_MEDIATYPE_APPLICATION_COSE_MAC0, "application/cose; cose-type=\"cose-mac0\"" },
|
||||
{ COAP_MEDIATYPE_APPLICATION_COSE_KEY, "application/cose-key" },
|
||||
{ COAP_MEDIATYPE_APPLICATION_COSE_KEY_SET, "application/cose-key-set" },
|
||||
{ COAP_MEDIATYPE_APPLICATION_SENML_JSON, "application/senml+json" },
|
||||
{ COAP_MEDIATYPE_APPLICATION_SENSML_JSON, "application/sensml+json" },
|
||||
{ COAP_MEDIATYPE_APPLICATION_SENML_CBOR, "application/senml+cbor" },
|
||||
{ COAP_MEDIATYPE_APPLICATION_SENSML_CBOR, "application/sensml+cbor" },
|
||||
{ COAP_MEDIATYPE_APPLICATION_SENML_EXI, "application/senml-exi" },
|
||||
{ COAP_MEDIATYPE_APPLICATION_SENSML_EXI, "application/sensml-exi" },
|
||||
{ COAP_MEDIATYPE_APPLICATION_SENML_XML, "application/senml+xml" },
|
||||
{ COAP_MEDIATYPE_APPLICATION_SENSML_XML, "application/sensml+xml" },
|
||||
{ 75, "application/dcaf+cbor" }
|
||||
};
|
||||
|
||||
|
||||
Reference in new issue
Block a user