Skip to content
Snippets Groups Projects
Unverified Commit 334f8285 authored by Koen Zandberg's avatar Koen Zandberg Committed by GitHub
Browse files

Merge pull request #9919 from kb2ma/nanocoap/example_resource_order

nanocoap/example: fix resource order
parents 50d6cfd2 ad826efa
No related branches found
No related tags found
No related merge requests found
......@@ -104,12 +104,12 @@ ssize_t _sha256_handler(coap_pkt_t* pkt, uint8_t *buf, size_t len, void *context
return pkt_pos - (uint8_t*)pkt->hdr;
}
/* must be sorted by path (alphabetically) */
/* must be sorted by path (ASCII order) */
const coap_resource_t coap_resources[] = {
COAP_WELL_KNOWN_CORE_DEFAULT_HANDLER,
{ "/sha256", COAP_POST, _sha256_handler, NULL },
{ "/riot/board", COAP_GET, _riot_board_handler, NULL },
{ "/riot/value", COAP_GET | COAP_PUT | COAP_POST, _riot_value_handler, NULL },
{ "/sha256", COAP_POST, _sha256_handler, NULL },
};
const unsigned coap_resources_numof = sizeof(coap_resources) / sizeof(coap_resources[0]);
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