Skip to content

Commit

Permalink
examples: nanonet: add comment regarding resource sorting
Browse files Browse the repository at this point in the history
  • Loading branch information
kaspar030 committed Nov 16, 2016
1 parent 8432d92 commit b6de3fe
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions examples/nanocoap_server/coap_handler.c
Expand Up @@ -17,6 +17,7 @@ static ssize_t _riot_board_handler(coap_pkt_t *pkt, uint8_t *buf, size_t len)
COAP_FORMAT_TEXT, (uint8_t*)RIOT_BOARD, strlen(RIOT_BOARD));
}

/* must be sorted by path (alphabetically) */
const coap_resource_t coap_resources[] = {
COAP_WELL_KNOWN_CORE_DEFAULT_HANDLER,
{ "/riot/board", COAP_GET, _riot_board_handler },
Expand Down

0 comments on commit b6de3fe

Please sign in to comment.