A CoAP option. More...
#include <ProsecCoAP.h>
Public Member Functions | |
| Option () | |
| Option (OptionNumber number, const uint8_t *value, size_t length) | |
| Build a CoAP option. | |
Public Attributes | |
| OptionNumber | number |
| The option number. | |
| const uint8_t * | value |
| Pointer to the option value. | |
| size_t | length |
| Length of the option value in bytes. | |
A CoAP option.
It references an option within a CoAP message.
|
inline |
|
inline |
Build a CoAP option.
| number | The option number. |
| value | The option value. |
| length | The length of the option value in bytes. |
| size_t Coap::Option::length |
Length of the option value in bytes.
| OptionNumber Coap::Option::number |
The option number.
This is initialized to 0 to indicate an empty (invalid) option.
| const uint8_t* Coap::Option::value |
Pointer to the option value.
The pointer is valid as long as the pointed buffer exists.