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
fa5ab4ee
Commit
fa5ab4ee
authored
6 years ago
by
Ken Bannister
Browse files
Options
Downloads
Patches
Plain Diff
net/gcoap: Add format option to nanocoap
parent
78164977
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
sys/include/net/nanocoap.h
+1
-1
1 addition, 1 deletion
sys/include/net/nanocoap.h
sys/net/application_layer/gcoap/gcoap.c
+6
-0
6 additions, 0 deletions
sys/net/application_layer/gcoap/gcoap.c
with
7 additions
and
1 deletion
sys/include/net/nanocoap.h
+
1
−
1
View file @
fa5ab4ee
...
@@ -175,7 +175,7 @@ extern "C" {
...
@@ -175,7 +175,7 @@ extern "C" {
/**
/**
* @brief Nanocoap-specific value to indicate no format specified
* @brief Nanocoap-specific value to indicate no format specified
*/
*/
#define COAP_FORMAT_NONE (
65535
)
#define COAP_FORMAT_NONE (
UINT16_MAX
)
/**
/**
* @name Nanocoap specific maximum values
* @name Nanocoap specific maximum values
...
...
This diff is collapsed.
Click to expand it.
sys/net/application_layer/gcoap/gcoap.c
+
6
−
0
View file @
fa5ab4ee
...
@@ -38,6 +38,12 @@
...
@@ -38,6 +38,12 @@
#define GCOAP_RESOURCE_WRONG_METHOD -1
#define GCOAP_RESOURCE_WRONG_METHOD -1
#define GCOAP_RESOURCE_NO_PATH -2
#define GCOAP_RESOURCE_NO_PATH -2
/*
* gcoap internal Content-Format option value. Not intended for use in a
* transmitted packet. Must be a 3-byte unsigned value.
*/
#define COAP_FORMAT_NO_PAYLOAD (UINT16_MAX + 1)
/* Internal functions */
/* Internal functions */
static
void
*
_event_loop
(
void
*
arg
);
static
void
*
_event_loop
(
void
*
arg
);
static
void
_listen
(
sock_udp_t
*
sock
);
static
void
_listen
(
sock_udp_t
*
sock
);
...
...
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