Nol.A SDK Library  24.11.0
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

66  {
67  MEDIA_TEXT_PLAIN = 0,
68  MEDIA_APP_COSE_ENC0 = 16,
69  MEDIA_APP_COSE_MAC0 = 17,
72  MEDIA_APP_XML = 41,
74  MEDIA_APP_EXI = 47,
75  MEDIA_APP_JSON = 50,
78  MEDIA_APP_CBOR = 60,
79  MEDIA_APP_CWT = 61,
80  MEDIA_APP_COSE_ENC = 96,
81  MEDIA_APP_COSE_MAC = 97,
82  MEDIA_APP_COSE_SIGN = 98,
83  MEDIA_APP_COSE_KEY = 101,
85  MEDIA_APP_SENML_JSON = 110,
86  MEDIA_APP_SENSML_JSON = 111,
87  MEDIA_APP_SENML_CBOR = 112,
88  MEDIA_APP_SENSML_CBOR = 113,
89  MEDIA_APP_SENML_EXI = 114,
90  MEDIA_APP_SENSML_EXI = 115,
92  MEDIA_APP_SENML_XML = 310,
93  MEDIA_APP_SENSML_XML = 311,
94  MEDIA_APP_VND_OCF_CBOR = 10000,
97  } Media_t;
Media_t
Media type (content format)
Definition: CoAP.hpp:66
@ MEDIA_APP_SENSML_CBOR
Definition: CoAP.hpp:88
@ MEDIA_APP_SENSML_JSON
Definition: CoAP.hpp:86
@ MEDIA_APP_SENSML_XML
Definition: CoAP.hpp:93
@ MEDIA_APP_CWT
Definition: CoAP.hpp:79
@ MEDIA_APP_VND_OMA_LWM2M_JSON
Definition: CoAP.hpp:96
@ MEDIA_APP_COSE_KEY_SET
Definition: CoAP.hpp:84
@ MEDIA_APP_COSE_ENC
Definition: CoAP.hpp:80
@ MEDIA_APP_JSON_PATCH_JSON
Definition: CoAP.hpp:76
@ MEDIA_APP_SENML_CBOR
Definition: CoAP.hpp:87
@ MEDIA_APP_COSE_SIGN
Definition: CoAP.hpp:82
@ MEDIA_APP_COSE_KEY
Definition: CoAP.hpp:83
@ MEDIA_APP_EXI
Definition: CoAP.hpp:74
@ MEDIA_APP_JSON
Definition: CoAP.hpp:75
@ MEDIA_APP_VND_OCF_CBOR
Definition: CoAP.hpp:94
@ MEDIA_APP_XML
Definition: CoAP.hpp:72
@ MEDIA_APP_SENML_XML
Definition: CoAP.hpp:92
@ MEDIA_APP_OCTET_STREAM
Definition: CoAP.hpp:73
@ MEDIA_APP_MERGE_PATCH_JSON
Definition: CoAP.hpp:77
@ MEDIA_APP_LINK_FORMAT
Definition: CoAP.hpp:71
@ MEDIA_APP_COSE_MAC0
Definition: CoAP.hpp:69
@ MEDIA_APP_COSE_SIGN1
Definition: CoAP.hpp:70
@ MEDIA_APP_COSE_ENC0
Definition: CoAP.hpp:68
@ MEDIA_TEXT_PLAIN
Definition: CoAP.hpp:67
@ MEDIA_APP_VND_OMA_LWM2M_TLV
Definition: CoAP.hpp:95
@ MEDIA_APP_COAP_GROUP_JSON
Definition: CoAP.hpp:91
@ MEDIA_APP_COSE_MAC
Definition: CoAP.hpp:81
@ MEDIA_APP_SENSML_EXI
Definition: CoAP.hpp:90
@ MEDIA_APP_CBOR
Definition: CoAP.hpp:78
@ MEDIA_APP_SENML_JSON
Definition: CoAP.hpp:85
@ MEDIA_APP_SENML_EXI
Definition: CoAP.hpp:89

◆ Method_t

Method type.

Defined by IANA

Enumerator
GET 

Code: 0.01

POST 

Code: 0.02

PUT 

Code: 0.03

DELETE 

Code: 0.04

104  {
105  GET = 1,
106  POST = 2,
107  PUT = 3,
108  DELETE = 4,
109  } Method_t;
Method_t
Method type.
Definition: CoAP.hpp:104
@ DELETE
Definition: CoAP.hpp:108
@ POST
Definition: CoAP.hpp:106
@ PUT
Definition: CoAP.hpp:107
@ GET
Definition: CoAP.hpp:105

The documentation for this class was generated from the following file: