mirror of
https://github.com/obgm/libcoap.git
synced 2026-11-12 19:40:39 +03:00
Make coap_add_option() invalid after calling a coap_add_data*() function. Add in internal support for adding options to PDUs that contain data with a replacement coap_add_option_internal() function. Call this new function in the appropriate places in the libcoap src. Add coap_log warnings when the application tries to build a PDU in the wrong order and then return failure. Update documentation re-inforcing the PDU building order.