ot::Coap::Message::AppendOption() method
Appends a CoAP option.
Arguments
aNumber
The CoAP Option number.
aLength
The CoAP Option length.
aValue
A pointer to the CoAP Option value (@p aLength bytes are used as Option value).
Return value
kErrorNone Successfully appended the option. kErrorInvalidArgs The option type is not equal or greater than the last option type. kErrorNoBufs The option length exceeds the buffer size.
![]()
return AppendOption(aNumber, length, value);
ot::Coap::Message::AppendOption() is called by 5 functions and calls 2 functions:
![]()
ot::Coap::Message::AppendOption()
ot::Coap::Message::AppendOption() reads 3 variables and writes 1 variable:
![]()
ot::Coap::Message::AppendOption()