CoAP: Add support for more Content-Formats
This commit is contained in:
parent
071eca97ad
commit
0dbf8c8e6c
|
@ -273,6 +273,13 @@ struct coap_option_range_t {
|
|||
|
||||
static const value_string vals_ctype[] = {
|
||||
{ 0, "text/plain; charset=utf-8" },
|
||||
{ 16, "application/cose; cose-type=\"cose-encrypt0\"" },
|
||||
{ 17, "application/cose; cose-type=\"cose-mac0\"" },
|
||||
{ 18, "application/cose; cose-type=\"cose-sign1\"" },
|
||||
{ 19, "application/ace+cbor" },
|
||||
{ 21, "image/gif" },
|
||||
{ 22, "image/jpeg" },
|
||||
{ 23, "image/png" },
|
||||
{ 40, "application/link-format" },
|
||||
{ 41, "application/xml" },
|
||||
{ 42, "application/octet-stream" },
|
||||
|
@ -283,6 +290,7 @@ static const value_string vals_ctype[] = {
|
|||
{ 60, "application/cbor" },
|
||||
{ 61, "application/cwt" },
|
||||
{ 62, "application/multipart-core" },
|
||||
{ 63, "application/cbor-seq" },
|
||||
{ 96, "application/cose; cose-type=\"cose-encrypt\"" },
|
||||
{ 97, "application/cose; cose-type=\"cose-mac\"" },
|
||||
{ 98, "application/cose; cose-type=\"cose-sign\"" },
|
||||
|
@ -294,7 +302,10 @@ static const value_string vals_ctype[] = {
|
|||
{ 113, "application/sensml+cbor" },
|
||||
{ 114, "application/senml-exi" },
|
||||
{ 115, "application/sensml-exi" },
|
||||
{ 140, "application/yang-data+cbor; id=sid" },
|
||||
{ 256, "application/coap-group+json" },
|
||||
{ 257, "application/concise-problem-details+cbor" },
|
||||
{ 258, "application/swid+cbor" },
|
||||
{ 271, "application/dots+cbor" },
|
||||
{ 272, "application/missing-blocks+cbor-seq" },
|
||||
{ 280, "application/pkcs7-mime; smime-type=server-generated-key" },
|
||||
|
@ -303,17 +314,28 @@ static const value_string vals_ctype[] = {
|
|||
{ 285, "application/csrattrs" },
|
||||
{ 286, "application/pkcs10" },
|
||||
{ 287, "application/pkix-cert" },
|
||||
{ 290, "application/aif+cbor" },
|
||||
{ 291, "application/aif+json" },
|
||||
{ 310, "application/senml+xml" },
|
||||
{ 311, "application/sensml+xml" },
|
||||
{ 320, "application/senml-etch+json" },
|
||||
{ 322, "application/senml-etch+cbor" },
|
||||
{ 340, "application/yang-data+cbor" },
|
||||
{ 341, "application/yang-data+cbor; id=name" },
|
||||
{ 322, "application/senml-etch+cbor" },
|
||||
{ 432, "application/td+json" },
|
||||
{ 433, "application/tm+json" },
|
||||
{ 1542, "application/vnd.oma.lwm2m+tlv" },
|
||||
{ 1543, "application/vnd.oma.lwm2m+json" },
|
||||
{ 10000, "application/vnd.ocf+cbor" },
|
||||
{ 10001, "application/oscore" },
|
||||
{ 10002, "application/javascript" },
|
||||
{ 11050, "application/json (Content Coding: deflate)" },
|
||||
{ 11060, "application/cbor (Content Coding: deflate)" },
|
||||
{ 11542, "application/vnd.oma.lwm2m+tlv" },
|
||||
{ 11543, "application/vnd.oma.lwm2m+json" },
|
||||
{ 20000, "text/css" },
|
||||
{ 30000, "image/svg+xml" },
|
||||
{ 0, NULL },
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue