SDK  23.9.2
For IoT System Software Development
Public Types | List of all members
CoAP Class Reference

CoAP common. More...

#include <CoAP.hpp>

Inheritance diagram for CoAP:
CoAPRequest

Public Types

enum  Media_t {
  MEDIA_TEXT_PLAIN = 0, MEDIA_APP_COSE_ENC0 = 16, MEDIA_APP_COSE_MAC0 = 17, MEDIA_APP_COSE_SIGN1 = 18,
  MEDIA_APP_LINK_FORMAT = 40, MEDIA_APP_XML = 41, MEDIA_APP_OCTET_STREAM = 42, MEDIA_APP_EXI = 47,
  MEDIA_APP_JSON = 50, MEDIA_APP_JSON_PATCH_JSON = 51, MEDIA_APP_MERGE_PATCH_JSON = 52, MEDIA_APP_CBOR = 60,
  MEDIA_APP_CWT = 61, MEDIA_APP_COSE_ENC = 96, MEDIA_APP_COSE_MAC = 97, MEDIA_APP_COSE_SIGN = 98,
  MEDIA_APP_COSE_KEY = 101, MEDIA_APP_COSE_KEY_SET = 102, MEDIA_APP_SENML_JSON = 110, MEDIA_APP_SENSML_JSON = 111,
  MEDIA_APP_SENML_CBOR = 112, MEDIA_APP_SENSML_CBOR = 113, MEDIA_APP_SENML_EXI = 114, MEDIA_APP_SENSML_EXI = 115,
  MEDIA_APP_COAP_GROUP_JSON = 116, MEDIA_APP_SENML_XML = 310, MEDIA_APP_SENSML_XML = 311, MEDIA_APP_VND_OCF_CBOR = 10000,
  MEDIA_APP_VND_OMA_LWM2M_TLV = 11542, MEDIA_APP_VND_OMA_LWM2M_JSON = 11543
}
 Media type (content format) More...
 
enum  Method_t { GET = 1, POST = 2, PUT = 3, DELETE = 4 }
 Method type. More...
 

Detailed Description

CoAP common.

Member Enumeration Documentation

◆ Media_t

Media type (content format)

Defined by IANA

Enumerator
MEDIA_TEXT_PLAIN 

text/plain; charset=utf-8

MEDIA_APP_COSE_ENC0 

application/cose; cose-type="cose-encrypt0"

MEDIA_APP_COSE_MAC0 

application/cose; cose-type="cose-mac0"

MEDIA_APP_COSE_SIGN1 

application/cose; cose-type="cose-sign1"

MEDIA_APP_LINK_FORMAT 

application/link-format

MEDIA_APP_XML 

application/xml

MEDIA_APP_OCTET_STREAM 

application/octet-stream

MEDIA_APP_EXI 

application/exi

MEDIA_APP_JSON 

application/json

MEDIA_APP_JSON_PATCH_JSON 

application/json-patch+json

MEDIA_APP_MERGE_PATCH_JSON 

application/merge-patch+json

MEDIA_APP_CBOR 

applicaiton/cbor

MEDIA_APP_CWT 

application/cwt

MEDIA_APP_COSE_ENC 

application/cose; cose-type="cose-encrypt"

MEDIA_APP_COSE_MAC 

application/cose; cose-type="cose-mac"

MEDIA_APP_COSE_SIGN 

application/cose; cose-type="cose-sign"

MEDIA_APP_COSE_KEY 

application/cose-key

MEDIA_APP_COSE_KEY_SET 

application/cose-key-set

MEDIA_APP_SENML_JSON 

application/senml+json

MEDIA_APP_SENSML_JSON 

application/sensml+json

MEDIA_APP_SENML_CBOR 

application/senml+cbor

MEDIA_APP_SENSML_CBOR 

application/sensml+cbor

MEDIA_APP_SENML_EXI 

application/senml-exi

MEDIA_APP_SENSML_EXI 

application/sensml-exi

MEDIA_APP_COAP_GROUP_JSON 

application/coap-group+json

MEDIA_APP_SENML_XML 

application/senml+xml

MEDIA_APP_SENSML_XML 

application/sensml+xml

MEDIA_APP_VND_OCF_CBOR 

application/vnd.ocf+cbor

MEDIA_APP_VND_OMA_LWM2M_TLV 

application/vnd.oma.lwm2m+tlv

MEDIA_APP_VND_OMA_LWM2M_JSON 

application/vnd.oma.lwm2m+json

◆ Method_t

Method type.

Defined by IANA

Enumerator
GET 

Code: 0.01

POST 

Code: 0.02

PUT 

Code: 0.03

DELETE 

Code: 0.04

103  {
104  GET = 1,
105  POST = 2,
106  PUT = 3,
107  DELETE = 4,
108  } Method_t;

The documentation for this class was generated from the following file:
CoAP::MEDIA_APP_CWT
@ MEDIA_APP_CWT
Definition: CoAP.hpp:78
CoAP::MEDIA_APP_COSE_MAC0
@ MEDIA_APP_COSE_MAC0
Definition: CoAP.hpp:68
CoAP::MEDIA_APP_SENML_JSON
@ MEDIA_APP_SENML_JSON
Definition: CoAP.hpp:84
CoAP::MEDIA_APP_SENML_EXI
@ MEDIA_APP_SENML_EXI
Definition: CoAP.hpp:88
CoAP::Media_t
Media_t
Media type (content format)
Definition: CoAP.hpp:65
CoAP::MEDIA_APP_COSE_ENC
@ MEDIA_APP_COSE_ENC
Definition: CoAP.hpp:79
CoAP::MEDIA_APP_VND_OMA_LWM2M_TLV
@ MEDIA_APP_VND_OMA_LWM2M_TLV
Definition: CoAP.hpp:94
CoAP::MEDIA_APP_OCTET_STREAM
@ MEDIA_APP_OCTET_STREAM
Definition: CoAP.hpp:72
CoAP::GET
@ GET
Definition: CoAP.hpp:104
CoAP::MEDIA_APP_SENML_CBOR
@ MEDIA_APP_SENML_CBOR
Definition: CoAP.hpp:86
CoAP::MEDIA_APP_COSE_MAC
@ MEDIA_APP_COSE_MAC
Definition: CoAP.hpp:80
CoAP::DELETE
@ DELETE
Definition: CoAP.hpp:107
CoAP::MEDIA_TEXT_PLAIN
@ MEDIA_TEXT_PLAIN
Definition: CoAP.hpp:66
CoAP::MEDIA_APP_SENSML_EXI
@ MEDIA_APP_SENSML_EXI
Definition: CoAP.hpp:89
CoAP::MEDIA_APP_VND_OCF_CBOR
@ MEDIA_APP_VND_OCF_CBOR
Definition: CoAP.hpp:93
CoAP::MEDIA_APP_XML
@ MEDIA_APP_XML
Definition: CoAP.hpp:71
CoAP::MEDIA_APP_SENSML_XML
@ MEDIA_APP_SENSML_XML
Definition: CoAP.hpp:92
CoAP::MEDIA_APP_COSE_KEY_SET
@ MEDIA_APP_COSE_KEY_SET
Definition: CoAP.hpp:83
CoAP::MEDIA_APP_COAP_GROUP_JSON
@ MEDIA_APP_COAP_GROUP_JSON
Definition: CoAP.hpp:90
CoAP::MEDIA_APP_SENML_XML
@ MEDIA_APP_SENML_XML
Definition: CoAP.hpp:91
CoAP::POST
@ POST
Definition: CoAP.hpp:105
CoAP::MEDIA_APP_COSE_SIGN1
@ MEDIA_APP_COSE_SIGN1
Definition: CoAP.hpp:69
CoAP::MEDIA_APP_SENSML_JSON
@ MEDIA_APP_SENSML_JSON
Definition: CoAP.hpp:85
CoAP::MEDIA_APP_COSE_SIGN
@ MEDIA_APP_COSE_SIGN
Definition: CoAP.hpp:81
CoAP::MEDIA_APP_LINK_FORMAT
@ MEDIA_APP_LINK_FORMAT
Definition: CoAP.hpp:70
CoAP::Method_t
Method_t
Method type.
Definition: CoAP.hpp:103
CoAP::MEDIA_APP_CBOR
@ MEDIA_APP_CBOR
Definition: CoAP.hpp:77
CoAP::MEDIA_APP_VND_OMA_LWM2M_JSON
@ MEDIA_APP_VND_OMA_LWM2M_JSON
Definition: CoAP.hpp:95
CoAP::MEDIA_APP_JSON
@ MEDIA_APP_JSON
Definition: CoAP.hpp:74
CoAP::MEDIA_APP_COSE_ENC0
@ MEDIA_APP_COSE_ENC0
Definition: CoAP.hpp:67
CoAP::PUT
@ PUT
Definition: CoAP.hpp:106
CoAP::MEDIA_APP_COSE_KEY
@ MEDIA_APP_COSE_KEY
Definition: CoAP.hpp:82
CoAP::MEDIA_APP_MERGE_PATCH_JSON
@ MEDIA_APP_MERGE_PATCH_JSON
Definition: CoAP.hpp:76
CoAP::MEDIA_APP_SENSML_CBOR
@ MEDIA_APP_SENSML_CBOR
Definition: CoAP.hpp:87
CoAP::MEDIA_APP_JSON_PATCH_JSON
@ MEDIA_APP_JSON_PATCH_JSON
Definition: CoAP.hpp:75
CoAP::MEDIA_APP_EXI
@ MEDIA_APP_EXI
Definition: CoAP.hpp:73