Skip to content

Commit

Permalink
examples/nanocoap_server: add output if registration fails
Browse files Browse the repository at this point in the history
  • Loading branch information
benpicco committed Jan 28, 2025
1 parent cd7c38e commit 99a66d5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions examples/nanocoap_server/coap_handler.c
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,9 @@ static ssize_t _time_handler(coap_pkt_t *pkt, uint8_t *buf, size_t len, coap_req
if (nanocoap_register_observer(context, pkt) == 0) {
registered = true;
}
else {
puts("_time_handler: can't register observer");
}
break;
case 1:
/* unregister */
Expand Down

0 comments on commit 99a66d5

Please sign in to comment.