1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-01-17 18:32:44 +01:00

nanocoap_sock: output diagnostic response when DEBUG is enabled

This commit is contained in:
Benjamin Valentin 2024-10-23 14:41:45 +02:00
parent f7160325bd
commit 66d6aece65

View File

@ -615,6 +615,8 @@ static int _block_cb(void *arg, coap_pkt_t *pkt)
int res = _get_error(pkt); int res = _get_error(pkt);
if (res) { if (res) {
pkt->payload[pkt->payload_len] = 0;
DEBUG("nanocoap: %u '%s'\n", coap_get_code_decimal(pkt), (char *)pkt->payload);
return res; return res;
} }