ot::Coap::Message::AppendMaxAgeOption() method
Appends a Max-Age option.
Arguments
aMaxAge
The Max-Age 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.