mirror of
https://github.com/obgm/libcoap.git
synced 2026-11-08 10:32:53 +03:00
coap_show_pdu()'s API is now coap_show_pdu(coap_log_t, coap_pdu_t*) New function void coap_set_show_pdu_output(int use_fprintf) Default is use fprintf() instead of coap_log() The output buffer size can be configuring -DCOAP_DEBUG_BUF_SIZE Output COAP_OPTION_SIZE2 option as well For binary data, output ascii readable equivalent immediately under the hex output for ease of debugging. include/coap/debug.h src/debug.c Update coap_show_pdu() API New function coap_set_show_pdu_output() Update coap_show_pdu() code include/coap/pdu.h Define the coap debug output debug buffer size COAP_DEBUG_BUF_SIZE examples/client.c examples/contiki/coap-observer.c src/net.c tests/test_wellknown.c tests/test_pdu.c Update coap_show_pdu() calls libcoap-2.map libcoap-2.sym New function coap_set_show_pdu_output()