Expand description
Tools for handling the extension encoding of CoAP options
Enums§
- ExtensionError 
- All the ways decoding an extension value can go wrong
Constants§
- OFFSET_1B 
- The offset added to a 1-byte extended value
- OFFSET_2B 
- The offset added to a 2-byte extended value
- VALUE_1B 
- Nibble value for “1 byte extension”
- VALUE_2B 
- Nibble value for “2 byte extension”
- VALUE_RESERVED 
- Nibble value reserved for the payload marker
Functions§
- encode_extensions 
- Encode delta and length into a small returned buffer
- take_extension 
- Decode an extended value.