@@ -177,6 +177,41 @@ extern "C" {
177177 * @{
178178 */
179179#define COAP_FORMAT_TEXT (0)
180+ /**
181+ * @brief Content-Type `application/cose; cose-type="cose-encrypt0"`
182+ * @see [RFC 9052](https://datatracker.ietf.org/doc/html/rfc9052)
183+ */
184+ #define COAP_FORMAT_COSE_ENCRYPT0 (16)
185+ /**
186+ * @brief Content-Type `application/cose; cose-type="cose-mac0"`
187+ * @see [RFC 9052](https://datatracker.ietf.org/doc/html/rfc9052)
188+ */
189+ #define COAP_FORMAT_COSE_MAC0 (17)
190+ /**
191+ * @brief Content-Type `application/cose; cose-type="cose-sign1"`
192+ * @see [RFC 9052](https://datatracker.ietf.org/doc/html/rfc9052)
193+ */
194+ #define COAP_FORMAT_COSE_SIGN1 (18)
195+ /**
196+ * @brief Content-Type `application/ace+cbor`
197+ * @see [RFC 9200](https://datatracker.ietf.org/doc/html/rfc9200)
198+ */
199+ #define COAP_FORMAT_ACE_CBOR (19)
200+ /**
201+ * @brief Content-Type `image/gif`
202+ * @see https://www.w3.org/Graphics/GIF/spec-gif89a.txt
203+ */
204+ #define COAP_FORMAT_IMAGE_GIF (21)
205+ /**
206+ * @brief Content-Type `image/jpeg`
207+ * @see [ISO/IEC 10918-5](https://www.itu.int/rec/T-REC-T.871-201105-I/en)
208+ */
209+ #define COAP_FORMAT_IMAGE_JPEG (22)
210+ /**
211+ * @brief Content-Type `image/png`
212+ * @see [RFC 2083](https://datatracker.ietf.org/doc/html/rfc2083)
213+ */
214+ #define COAP_FORMAT_IMAGE_PNG (23)
180215#define COAP_FORMAT_LINK (40)
181216#define COAP_FORMAT_XML (41)
182217#define COAP_FORMAT_OCTET (42)
@@ -185,14 +220,226 @@ extern "C" {
185220#define COAP_FORMAT_JSON_PATCH_JSON (51)
186221#define COAP_FORMAT_MERGE_PATCH_JSON (52)
187222#define COAP_FORMAT_CBOR (60)
223+ /**
224+ * @brief Content-Type `application/cwt`
225+ * @see [RFC 8392](https://datatracker.ietf.org/doc/html/rfc8392)
226+ */
227+ #define COAP_FORMAT_CWT (61)
228+ /**
229+ * @brief Content-Type `application/multipart-core`
230+ * @see [RFC 8710](https://datatracker.ietf.org/doc/html/rfc8710)
231+ */
232+ #define COAP_FORMAT_MULTIPART_CORE (62)
233+ /**
234+ * @brief Content-Type `application/cbor-seq`
235+ * @see [RFC 8742](https://datatracker.ietf.org/doc/html/rfc8742)
236+ */
237+ #define COAP_FORMAT_CBOR_SEQ (63)
238+ /**
239+ * @brief Content-Type `application/cose; cose-type="cose-encrypt"`
240+ * @see [RFC 9052](https://datatracker.ietf.org/doc/html/rfc9052)
241+ */
242+ #define COAP_FORMAT_COSE_ENCRYPT (96)
243+ /**
244+ * @brief Content-Type `application/cose; cose-type="cose-mac"`
245+ * @see [RFC 9052](https://datatracker.ietf.org/doc/html/rfc9052)
246+ */
247+ #define COAP_FORMAT_COSE_MAC (97)
248+ /**
249+ * @brief Content-Type `application/cose; cose-type="cose-sign"`
250+ * @see [RFC 9052](https://datatracker.ietf.org/doc/html/rfc9052)
251+ */
252+ #define COAP_FORMAT_COSE_SIGN (98)
253+ /**
254+ * @brief Content-Type `application/cose-key`
255+ * @see [RFC 9052](https://datatracker.ietf.org/doc/html/rfc9052)
256+ */
257+ #define COAP_FORMAT_COSE_KEY (101)
258+ /**
259+ * @brief Content-Type `application/cose-key-set`
260+ * @see [RFC 9052](https://datatracker.ietf.org/doc/html/rfc9052)
261+ */
262+ #define COAP_FORMAT_COSE_KEY_SET (102)
188263#define COAP_FORMAT_SENML_JSON (110)
189264#define COAP_FORMAT_SENSML_JSON (111)
190265#define COAP_FORMAT_SENML_CBOR (112)
191266#define COAP_FORMAT_SENSML_CBOR (113)
192267#define COAP_FORMAT_SENML_EXI (114)
193268#define COAP_FORMAT_SENSML_EXI (115)
269+ /**
270+ * @brief Content-Type `application/yang-data+cbor; id=sid`
271+ * @see [RFC 9254](https://datatracker.ietf.org/doc/html/rfc9254)
272+ */
273+ #define COAP_FORMAT_YANG_DATA_CBOR_SID (140)
274+ /**
275+ * @brief Content-Type `application/coap-group+json`
276+ * @see [RFC 7390](https://datatracker.ietf.org/doc/html/rfc7390)
277+ */
278+ #define COAP_FORMAT_COAP_GROUP_JSON (256)
279+ /**
280+ * @brief Content-Type `application/concise-problem-details+cbor`
281+ * @see [RFC 9290](https://datatracker.ietf.org/doc/html/rfc9290)
282+ */
283+ #define COAP_FORMAT_PROBLEM_DETAILS_CBOR (257)
284+ /**
285+ * @brief Content-Type `application/swid+cbor`
286+ * @see [RFC 9393](https://datatracker.ietf.org/doc/html/rfc9393)
287+ */
288+ #define COAP_FORMAT_SWID_CBOR (258)
289+ /**
290+ * @brief Content-Type `application/pkixcmp`
291+ * @see [draft-ietf-ace-cmpv2-coap-transport](https://datatracker.ietf.org/doc/draft-ietf-ace-cmpv2-coap-transport/)
292+ * @see [RFC 4210](https://datatracker.ietf.org/doc/html/rfc4210)
293+ */
294+ #define COAP_FORMAT_PKIXCMP (259)
295+ /**
296+ * @brief Content-Type `application/dots+cbor`
297+ * @see [RFC 9132](https://datatracker.ietf.org/doc/html/rfc9132)
298+ */
299+ #define COAP_FORMAT_DOTS_CBOR (271)
300+ /**
301+ * @brief Content-Type `application/missing-blocks+cbor-seq`
302+ * @see [RFC 9177](https://datatracker.ietf.org/doc/html/rfc9177)
303+ */
304+ #define COAP_FORMAT_MISSING_BLOCKS_CBOR_SEQ (272)
305+ /**
306+ * @brief Content-Type `application/pkcs7-mime; smime-type=server-generated-key`
307+ * @see [RFC 7030](https://datatracker.ietf.org/doc/html/rfc7030)
308+ * @see [RFC 8551](https://datatracker.ietf.org/doc/html/rfc8551)
309+ * @see [RFC 9148](https://datatracker.ietf.org/doc/html/rfc9148)
310+ */
311+ #define COAP_FORMAT_PKCS7_MIME_SERVER_GEN (280)
312+ /**
313+ * @brief Content-Type `application/pkcs7-mime; smime-type=certs-only`
314+ * @see [RFC 8551](https://datatracker.ietf.org/doc/html/rfc8551)
315+ * @see [RFC 9148](https://datatracker.ietf.org/doc/html/rfc9148)
316+ */
317+ #define COAP_FORMAT_PKCS7_MIME_CERTS_ONLY (281)
318+ /**
319+ * @brief Content-Type `application/pkcs8`
320+ * @see [RFC 5958](https://datatracker.ietf.org/doc/html/rfc5958)
321+ * @see [RFC 8551](https://datatracker.ietf.org/doc/html/rfc8551)
322+ * @see [RFC 9148](https://datatracker.ietf.org/doc/html/rfc9148)
323+ */
324+ #define COAP_FORMAT_PKCS8 (284)
325+ /**
326+ * @brief Content-Type `application/csrattrs`
327+ * @see [RFC 7030](https://datatracker.ietf.org/doc/html/rfc7030)
328+ * @see [RFC 9148](https://datatracker.ietf.org/doc/html/rfc9148)
329+ */
330+ #define COAP_FORMAT_CSRATTRS (285)
331+ /**
332+ * @brief Content-Type `application/pkcs10`
333+ * @see [RFC 5967](https://datatracker.ietf.org/doc/html/rfc5967)
334+ * @see [RFC 8551](https://datatracker.ietf.org/doc/html/rfc8551)
335+ * @see [RFC 9148](https://datatracker.ietf.org/doc/html/rfc9148)
336+ */
337+ #define COAP_FORMAT_PKCS10 (286)
338+ /**
339+ * @brief Content-Type `application/pkix-cert`
340+ * @see [RFC 2585](https://datatracker.ietf.org/doc/html/rfc2585)
341+ * @see [RFC 9148](https://datatracker.ietf.org/doc/html/rfc9148)
342+ */
343+ #define COAP_FORMAT_PKIX_CERT (287)
344+ /**
345+ * @brief Content-Type `application/aif+cbor`
346+ * @see [RFC 9237](https://datatracker.ietf.org/doc/html/rfc9237)
347+ */
348+ #define COAP_FORMAT_AIF_CBOR (290)
349+ /**
350+ * @brief Content-Type `application/aif+json`
351+ * @see [RFC 9237](https://datatracker.ietf.org/doc/html/rfc9237)
352+ */
353+ #define COAP_FORMAT_AIF_JSON (291)
194354#define COAP_FORMAT_SENML_XML (310)
195355#define COAP_FORMAT_SENSML_XML (311)
356+ /**
357+ * @brief Content-Type `application/senml-etch+json`
358+ * @see [RFC 8790](https://datatracker.ietf.org/doc/html/rfc8790)
359+ */
360+ #define COAP_FORMAT_SNML_ETCH_JSON (320)
361+ /**
362+ * @brief Content-Type `application/senml-etch+cbor`
363+ * @see [RFC 8790](https://datatracker.ietf.org/doc/html/rfc8790)
364+ */
365+ #define COAP_FORMAT_SNML_ETCH_CBOR (322)
366+ /**
367+ * @brief Content-Type `application/yang-data+cbor`
368+ * @see [RFC 9254](https://datatracker.ietf.org/doc/html/rfc9254)
369+ */
370+ #define COAP_FORMAT_YAML_DATA_CBOR (340)
371+ /**
372+ * @brief Content-Type `application/yang-data+cbor; id=name`
373+ * @see [RFC 9254](https://datatracker.ietf.org/doc/html/rfc9254)
374+ */
375+ #define COAP_FORMAT_YAML_DATA_CBOR_ID_NAME (341)
376+ /**
377+ * @brief Content-Type `application/td+json`
378+ * @see [Web of Things (WoT) Thing Description 1.1](https://www.w3.org/TR/wot-thing-description11/)
379+ */
380+ #define COAP_FORMAT_TD_JSON (432)
381+ /**
382+ * @brief Content-Type `application/tm+json`
383+ * @see [Web of Things (WoT) Thing Description 1.1](https://www.w3.org/TR/wot-thing-description11/)
384+ */
385+ #define COAP_FORMAT_TM_JSON (433)
386+ /**
387+ * @brief Content-Type `application/voucher-cose+cbor`
388+ * @see [draft-ietf-anima-constrained-voucher](https://datatracker.ietf.org/doc/draft-ietf-anima-constrained-voucher/)
389+ * @note Temporary registration until April 12, 2024.
390+ */
391+ #define COAP_FORMAT_VOUCER_COSE_CBOR (836)
392+ /**
393+ * @brief Content-Type `application/vnd.ocf+cbor`
394+ */
395+ #define COAP_FORMAT_VND_OCF_CBOR (10000)
396+ /**
397+ * @brief Content-Type `application/oscore`
398+ * @see [RFC 8613](https://datatracker.ietf.org/doc/html/rfc8613)
399+ */
400+ #define COAP_FORMAT_OSCORE (10001)
401+ /**
402+ * @brief Content-Type `application/javascript`
403+ * @see [RFC 4329](https://datatracker.ietf.org/doc/html/rfc4329)
404+ */
405+ #define COAP_FORMAT_JAVASCRIPT (10002)
406+ /**
407+ * @brief Content-Type `application/json` with Content Coding `deflate`
408+ * @see [RFC 8259](https://datatracker.ietf.org/doc/html/rfc8259)
409+ * @see [RFC 9110, Section 8.4.1.2](https://datatracker.ietf.org/doc/html/rfc9110)
410+ */
411+ #define COAP_FORMAT_JSON_DEFLATE (11050)
412+ /**
413+ * @brief Content-Type `application/cbor` with Content Coding `deflate`
414+ * @see [RFC 8949](https://datatracker.ietf.org/doc/html/rfc8949)
415+ * @see [RFC 9110, Section 8.4.1.2](https://datatracker.ietf.org/doc/html/rfc9110)
416+ */
417+ #define COAP_FORMAT_CBOR_DEFLATE (11060)
418+ /**
419+ * @brief Content-Type `application/vnd.oma.lwm2m+tlv`
420+ * @see [OMA-TS-LightweightM2M-V1_0](https://www.openmobilealliance.org/release/LightweightM2M/V1_0-20170208-A/OMA-TS-LightweightM2M-V1_0-20170208-A.pdf)
421+ */
422+ #define COAP_FORMAT_VND_OMA_LWM2M_TLV (11542)
423+ /**
424+ * @brief Content-Type `application/vnd.oma.lwm2m+json`
425+ * @see [OMA-TS-LightweightM2M-V1_0](https://www.openmobilealliance.org/release/LightweightM2M/V1_0-20170208-A/OMA-TS-LightweightM2M-V1_0-20170208-A.pdf)
426+ */
427+ #define COAP_FORMAT_VND_OMA_LWM2M_JSON (11543)
428+ /**
429+ * @brief Content-Type `application/vnd.oma.lwm2m+cbor`
430+ * @see [OMA-TS-LightweightM2M-V1_2](https://www.openmobilealliance.org/release/LightweightM2M/V1_2-20201110-A/HTML-Version/OMA-TS-LightweightM2M_Core-V1_2-20201110-A.html)
431+ */
432+ #define COAP_FORMAT_VND_OMA_LWM2M_CBOR (11544)
433+ /**
434+ * @brief Content-Type `text/css`
435+ * @see https://datatracker.ietf.org/doc/html/rfc2318
436+ */
437+ #define COAP_FORMAT_TEXT_CSS (20000)
438+ /**
439+ * @brief Content-Type `image/svg+xml`
440+ * @see [RFC 2318](https://www.w3.org/TR/SVG/mimereg.html)
441+ */
442+ #define COAP_FORMAT_IMAGE_SVG_XML (30000)
196443#define COAP_FORMAT_DNS_MESSAGE (65053) /**< NON STANDARD! */
197444/** @} */
198445
0 commit comments