otCoapOptionIteratorInit() function
Initialises an iterator for the options in the given message.
Arguments
aIterator
A pointer to the CoAP message option iterator.
aMessage
A pointer to the CoAP message.
Return value
OT_ERROR_NONE Successfully initialised. OT_ERROR_PARSE Message state is inconsistent.