The iterator you use to retrieve option values in-order.
Example
unicoap_option_iterator iterator = {0};
uint8_t* value = NULL;
ssize_t size = -1;
my_dump_hex(value, size);
}
#define printf(...)
A wrapper for the printf() function that passes arguments through unmodified, but fails to compile if...
static void unicoap_options_iterator_init(unicoap_options_iterator_t *iterator, unicoap_options_t *options)
Initializes the given iterator structure.
ssize_t unicoap_options_get_next(unicoap_options_iterator_t *iterator, unicoap_option_number_t *number, const uint8_t **value)
Gets the next option provided by the given iterator.
unicoap_option_number_t
CoAP option number.
const char * unicoap_string_from_option_number(unicoap_option_number_t number)
Returns label of option corresponding to the given number.
#define PRIiSIZE
Macro holding the format specifier to print an ssize_t variable.
Definition at line 582 of file options.h.
|
static void | unicoap_options_iterator_init (unicoap_options_iterator_t *iterator, unicoap_options_t *options) |
| Initializes the given iterator structure.
|
|
ssize_t | unicoap_options_get_next (unicoap_options_iterator_t *iterator, unicoap_option_number_t *number, const uint8_t **value) |
| Gets the next option provided by the given iterator.
|
|
ssize_t | unicoap_options_get_next_by_number (unicoap_options_iterator_t *iterator, unicoap_option_number_t number, const uint8_t **value) |
| Gets the next option with the given number, potentially skipping any options in between.
|
|
ssize_t | unicoap_options_get_next_query_by_name (unicoap_options_iterator_t *iterator, unicoap_option_number_t number, const char *name, const char **value) |
| Gets the next query option matching the given name, potentially skipping any options in between.
|
|