From b4f8b7a10b35455e22654d9c81144b90fb380b19 Mon Sep 17 00:00:00 2001 From: Ken Bannister <kb2ma@runbox.com> Date: Tue, 22 Jan 2019 08:42:16 -0500 Subject: [PATCH] net/nanocoap: add debug message for server --- sys/net/application_layer/nanocoap/sock.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sys/net/application_layer/nanocoap/sock.c b/sys/net/application_layer/nanocoap/sock.c index e77e9e94d3..446adb1957 100644 --- a/sys/net/application_layer/nanocoap/sock.c +++ b/sys/net/application_layer/nanocoap/sock.c @@ -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) { res = sock_udp_send(&sock, buf, res, &remote); } + else { + DEBUG("error handling request %d\n", (int)res); + } } } -- GitLab