mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-12-16 01:53:51 +01:00
examples: nanonet: add comment regarding resource sorting
This commit is contained in:
parent
8432d923be
commit
b6de3fe29c
@ -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));
|
COAP_FORMAT_TEXT, (uint8_t*)RIOT_BOARD, strlen(RIOT_BOARD));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* must be sorted by path (alphabetically) */
|
||||||
const coap_resource_t coap_resources[] = {
|
const coap_resource_t coap_resources[] = {
|
||||||
COAP_WELL_KNOWN_CORE_DEFAULT_HANDLER,
|
COAP_WELL_KNOWN_CORE_DEFAULT_HANDLER,
|
||||||
{ "/riot/board", COAP_GET, _riot_board_handler },
|
{ "/riot/board", COAP_GET, _riot_board_handler },
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user