Skip to content
Snippets Groups Projects
Commit cb5232a1 authored by Rotzbua's avatar Rotzbua
Browse files

gcoap/example: add comment on resource order

according to nanocoap/example: fix resource order #9919
parent c1524bab
No related branches found
No related tags found
No related merge requests found
...@@ -34,7 +34,7 @@ static void _resp_handler(unsigned req_state, coap_pkt_t* pdu, ...@@ -34,7 +34,7 @@ static void _resp_handler(unsigned req_state, coap_pkt_t* pdu,
static ssize_t _stats_handler(coap_pkt_t* pdu, uint8_t *buf, size_t len, void *ctx); static ssize_t _stats_handler(coap_pkt_t* pdu, uint8_t *buf, size_t len, void *ctx);
static ssize_t _riot_board_handler(coap_pkt_t* pdu, uint8_t *buf, size_t len, void *ctx); static ssize_t _riot_board_handler(coap_pkt_t* pdu, uint8_t *buf, size_t len, void *ctx);
/* CoAP resources */ /* CoAP resources. Must be sorted by path (ASCII order). */
static const coap_resource_t _resources[] = { static const coap_resource_t _resources[] = {
{ "/cli/stats", COAP_GET | COAP_PUT, _stats_handler, NULL }, { "/cli/stats", COAP_GET | COAP_PUT, _stats_handler, NULL },
{ "/riot/board", COAP_GET, _riot_board_handler, NULL }, { "/riot/board", COAP_GET, _riot_board_handler, NULL },
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment