Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
M
mongoose
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
esp
mongoose
Commits
a5c697fa
Commit
a5c697fa
authored
Jul 25, 2016
by
Evelyn
Committed by
GitHub
Jul 25, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update mg_coap_parse.md
parent
be199b4f
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
mg_coap_parse.md
docs/c-api/coap.h/mg_coap_parse.md
+4
-4
No files found.
docs/c-api/coap.h/mg_coap_parse.md
View file @
a5c697fa
...
@@ -6,13 +6,13 @@ signature: |
...
@@ -6,13 +6,13 @@ signature: |
uint32_t mg_coap_parse(struct mbuf *io, struct mg_coap_message *cm);
uint32_t mg_coap_parse(struct mbuf *io, struct mg_coap_message *cm);
---
---
Parse
CO
AP message and fills mg_coap_message and returns cm->flags.
Parse
s Co
AP message and fills mg_coap_message and returns cm->flags.
This is a helper function.
This is a helper function.
NOTE: usually CoAP work
over UDP, so lack of data means format error,
NOTE: usually CoAP work
s over UDP, so lack of data means format error.
but in theory
it is possible to use CoAP over TCP (according to RFC)
But, in theory,
it is possible to use CoAP over TCP (according to RFC)
The caller ha
ve
to check results and treat COAP_NOT_ENOUGH_DATA according to
The caller ha
s
to check results and treat COAP_NOT_ENOUGH_DATA according to
underlying protocol:
underlying protocol:
-
in case of UDP COAP_NOT_ENOUGH_DATA means COAP_FORMAT_ERROR,
-
in case of UDP COAP_NOT_ENOUGH_DATA means COAP_FORMAT_ERROR,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment