mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
net/nanocoap: add debug message for server
This commit is contained in:
parent
4e5de1b789
commit
b4f8b7a10b
@ -145,6 +145,9 @@ int nanocoap_server(sock_udp_ep_t *local, uint8_t *buf, size_t bufsize)
|
|||||||
if ((res = coap_handle_req(&pkt, buf, bufsize)) > 0) {
|
if ((res = coap_handle_req(&pkt, buf, bufsize)) > 0) {
|
||||||
res = sock_udp_send(&sock, buf, res, &remote);
|
res = sock_udp_send(&sock, buf, res, &remote);
|
||||||
}
|
}
|
||||||
|
else {
|
||||||
|
DEBUG("error handling request %d\n", (int)res);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user