|
#define | COAP_DEFAULT_PORT 5683 /* CoAP default UDP/TCP port */ |
|
#define | COAPS_DEFAULT_PORT 5684 /* CoAP default UDP/TCP port for secure transmission */ |
|
#define | COAP_DEFAULT_MAX_AGE 60 /* default maximum object lifetime in seconds */ |
|
#define | COAP_DEFAULT_MTU 1152 |
|
#define | COAP_BERT_BASE 1152 |
|
#define | COAP_DEFAULT_HOP_LIMIT 16 |
|
#define | COAP_DEFAULT_SCHEME "coap" /* the default scheme for CoAP URIs */ |
|
#define | COAP_DEFAULT_URI_WELLKNOWN ".well-known/core" |
| well-known resources URI
|
|
#define | COAP_TOKEN_DEFAULT_MAX 8 |
|
#define | COAP_TOKEN_EXT_MAX 4096 |
|
#define | COAP_OPTION_IF_MATCH 1 /* C__RE__, opaque, 0-8 B, RFC7252 */ |
|
#define | COAP_OPTION_URI_HOST 3 /* CU-___U, String, 1-255 B, RFC7252 */ |
|
#define | COAP_OPTION_ETAG 4 /* ___RE__, opaque, 1-8 B, RFC7252 */ |
|
#define | COAP_OPTION_IF_NONE_MATCH 5 /* C___E__, empty, 0 B, RFC7252 */ |
|
#define | COAP_OPTION_OBSERVE 6 /* _U-_E_U, empty/uint,0/0-3 B, RFC7641 */ |
|
#define | COAP_OPTION_URI_PORT 7 /* CU-___U, uint, 0-2 B, RFC7252 */ |
|
#define | COAP_OPTION_LOCATION_PATH 8 /* ___RE__, String, 0-255 B, RFC7252 */ |
|
#define | COAP_OPTION_OSCORE 9 /* C_____U, *, 0-255 B, RFC8613 */ |
|
#define | COAP_OPTION_URI_PATH 11 /* CU-RE__, String, 0-255 B, RFC7252 */ |
|
#define | COAP_OPTION_CONTENT_FORMAT 12 /* ____E__, uint, 0-2 B, RFC7252 */ |
|
#define | COAP_OPTION_CONTENT_TYPE COAP_OPTION_CONTENT_FORMAT |
|
#define | COAP_OPTION_MAXAGE 14 /* _U-_E_U, uint, 0-4 B, RFC7252 */ |
|
#define | COAP_OPTION_URI_QUERY 15 /* CU-RE__, String, 1-255 B, RFC7252 */ |
|
#define | COAP_OPTION_HOP_LIMIT 16 /* ______U, uint, 1 B, RFC8768 */ |
|
#define | COAP_OPTION_ACCEPT 17 /* C___E__, uint, 0-2 B, RFC7252 */ |
|
#define | COAP_OPTION_Q_BLOCK1 19 /* CU__E_U, uint, 0-3 B, RFC9177 */ |
|
#define | COAP_OPTION_LOCATION_QUERY 20 /* ___RE__, String, 0-255 B, RFC7252 */ |
|
#define | COAP_OPTION_BLOCK2 23 /* CU-_E_U, uint, 0-3 B, RFC7959 */ |
|
#define | COAP_OPTION_BLOCK1 27 /* CU-_E_U, uint, 0-3 B, RFC7959 */ |
|
#define | COAP_OPTION_SIZE2 28 /* __N_E_U, uint, 0-4 B, RFC7959 */ |
|
#define | COAP_OPTION_Q_BLOCK2 31 /* CU_RE_U, uint, 0-3 B, RFC9177 */ |
|
#define | COAP_OPTION_PROXY_URI 35 /* CU-___U, String, 1-1034 B, RFC7252 */ |
|
#define | COAP_OPTION_PROXY_SCHEME 39 /* CU-___U, String, 1-255 B, RFC7252 */ |
|
#define | COAP_OPTION_SIZE1 60 /* __N_E_U, uint, 0-4 B, RFC7252 */ |
|
#define | COAP_OPTION_ECHO 252 /* _N__E_U, opaque, 0-40 B, RFC9175 */ |
|
#define | COAP_OPTION_NORESPONSE 258 /* _U-_E_U, uint, 0-1 B, RFC7967 */ |
|
#define | COAP_OPTION_RTAG 292 /* ___RE_U, opaque, 0-8 B, RFC9175 */ |
|
#define | COAP_MAX_OPT 65534 |
| the highest option number we know
|
|
#define | COAP_RESPONSE_CODE(N) (((N)/100 << 5) | (N)%100) |
|
#define | COAP_RESPONSE_CLASS(C) (((C) >> 5) & 0xFF) |
|
#define | COAP_ERROR_PHRASE_LENGTH 32 |
| maximum length of error phrase
|
|
#define | COAP_SIGNALING_CODE(N) (((N)/100 << 5) | (N)%100) |
|
#define | COAP_SIGNALING_OPTION_MAX_MESSAGE_SIZE 2 |
|
#define | COAP_SIGNALING_OPTION_BLOCK_WISE_TRANSFER 4 |
|
#define | COAP_SIGNALING_OPTION_EXTENDED_TOKEN_LENGTH 6 |
|
#define | COAP_SIGNALING_OPTION_CUSTODY 2 |
|
#define | COAP_SIGNALING_OPTION_ALTERNATIVE_ADDRESS 2 |
|
#define | COAP_SIGNALING_OPTION_HOLD_OFF 4 |
|
#define | COAP_SIGNALING_OPTION_BAD_CSM_OPTION 2 |
|
#define | COAP_MEDIATYPE_TEXT_PLAIN 0 /* text/plain (UTF-8) */ |
|
#define | COAP_MEDIATYPE_APPLICATION_LINK_FORMAT 40 /* application/link-format */ |
|
#define | COAP_MEDIATYPE_APPLICATION_XML 41 /* application/xml */ |
|
#define | COAP_MEDIATYPE_APPLICATION_OCTET_STREAM 42 /* application/octet-stream */ |
|
#define | COAP_MEDIATYPE_APPLICATION_RDF_XML 43 /* application/rdf+xml */ |
|
#define | COAP_MEDIATYPE_APPLICATION_EXI 47 /* application/exi */ |
|
#define | COAP_MEDIATYPE_APPLICATION_JSON 50 /* application/json */ |
|
#define | COAP_MEDIATYPE_APPLICATION_CBOR 60 /* application/cbor */ |
|
#define | COAP_MEDIATYPE_APPLICATION_CWT 61 /* application/cwt, RFC 8392 */ |
|
#define | COAP_MEDIATYPE_APPLICATION_COAP_GROUP_JSON 256 /* application/coap-group+json */ |
|
#define | COAP_MEDIATYPE_APPLICATION_COSE_SIGN 98 /* application/cose; cose-type="cose-sign" */ |
|
#define | COAP_MEDIATYPE_APPLICATION_COSE_SIGN1 18 /* application/cose; cose-type="cose-sign1" */ |
|
#define | COAP_MEDIATYPE_APPLICATION_COSE_ENCRYPT 96 /* application/cose; cose-type="cose-encrypt" */ |
|
#define | COAP_MEDIATYPE_APPLICATION_COSE_ENCRYPT0 16 /* application/cose; cose-type="cose-encrypt0" */ |
|
#define | COAP_MEDIATYPE_APPLICATION_COSE_MAC 97 /* application/cose; cose-type="cose-mac" */ |
|
#define | COAP_MEDIATYPE_APPLICATION_COSE_MAC0 17 /* application/cose; cose-type="cose-mac0" */ |
|
#define | COAP_MEDIATYPE_APPLICATION_COSE_KEY 101 /* application/cose-key */ |
|
#define | COAP_MEDIATYPE_APPLICATION_COSE_KEY_SET 102 /* application/cose-key-set */ |
|
#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 */ |
|
#define | COAP_MEDIATYPE_APPLICATION_DOTS_CBOR 271 /* application/dots+cbor */ |
|
#define | COAP_MEDIATYPE_APPLICATION_ACE_CBOR 19 /* application/ace+cbor */ |
|
#define | COAP_MEDIATYPE_APPLICATION_MB_CBOR_SEQ 272 /* application/missing-blocks+cbor-seq */ |
|
#define | COAP_MEDIATYPE_APPLICATION_OSCORE 10001 /* application/oscore */ |
|
#define | COAP_INVALID_MID -1 |
| Indicates an invalid message id.
|
|
#define | COAP_INVALID_TID COAP_INVALID_MID |
| Indicates an invalid message id.
|
|
#define | COAP_OPTION_KEY(option) (option).key |
|
#define | COAP_OPTION_LENGTH(option) (option).length |
|
#define | COAP_OPTION_DATA(option) ((unsigned char *)&(option) + sizeof(coap_option)) |
|