Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
RIOT
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
cm-projects
RIOT
Commits
cb5232a1
Commit
cb5232a1
authored
6 years ago
by
Rotzbua
Browse files
Options
Downloads
Patches
Plain Diff
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
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
examples/gcoap/gcoap_cli.c
+1
-1
1 addition, 1 deletion
examples/gcoap/gcoap_cli.c
with
1 addition
and
1 deletion
examples/gcoap/gcoap_cli.c
+
1
−
1
View file @
cb5232a1
...
@@ -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
},
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment