[−][src]Module coap_numbers::option
Constants and functions for CoAP options
Option numbers are expressed as u16 values as that is the range assigned at IANA, and also the practicably expressible range.
Enums
Criticality | Classification of options by their default end-point behavior |
ProxySafety | Classification of options by their default proxy behavior |
Constants
ACCEPT | Accept |
BLOCK1 | Block1 |
BLOCK2 | Block2 |
CONTENT_FORMAT | Content-Format |
ETAG | ETag |
HOP_LIMIT | Hop-Limit |
IF_MATCH | If-Match |
IF_NONE_MATCH | If-None-Match |
LOCATION_PATH | Location-Path |
LOCATION_QUERY | Location-Query |
MAX_AGE | Max-Age |
NO_RESPONSE | No-Response |
OBSERVE | Observe |
OCF_ACCEPT_CONTENT_FORMAT_VERSION | OCF-Accept-Content-Format-Version |
OCF_CONTENT_FORMAT_VERSION | OCF-Content-Format-Version |
OSCORE | OSCORE |
PROXY_SCHEME | Proxy-Scheme |
PROXY_URI | Proxy-Uri |
SIZE1 | Size1 |
SIZE2 | Size2 |
URI_HOST | Uri-Host |
URI_PATH | Uri-Path |
URI_PORT | Uri-Port |
URI_QUERY | Uri-Query |
Functions
get_criticality | Extract the option's critical/elective bit |
get_proxy_safety | Extract the option's proxy safety bit(s) |
to_name | Find the name for a CoAP option, if any is known |