The option iterator. More...
#include <ProsecCoAP.h>
Public Member Functions | |
| OptionIterator (const Message &message) | |
| Initialize the option iterator for the given message. | |
| ErrorCode | next (Option &option) |
| Get the next option in the message. | |
Friends | |
| class | Message |
The option iterator.
It allows iterating through the options of a CoAP message, in order of increasing option number.
| Coap::OptionIterator::OptionIterator | ( | const Message & | message | ) |
Initialize the option iterator for the given message.
The first byte to be read will be the one after the header and token (if present).
| message | The reference to the message to iterate. |
Get the next option in the message.
Note that some options may be repeated.
| [out] | option | The next option. |
|
friend |