Content deleted Content added
→Message formats: Reorganize the messages format introduction (high-level view in the first paragraph, structure in the second paragraph) and fix naming: "header" denotes only the first 4 bytes, "payload" is the correct name of what was called "message body" before according to the spec |
→CoAP Fixed Header: Clarify that the first 4 bytes constitute the header which is why they are always required |
||
Line 40:
|}
=== CoAP Fixed-Size Header ===
The first 4 bytes are mandatory in all CoAP datagrams, they constitute the fixed-size header.
These fields can be extracted from these 4 bytes in C via these macros:<syntaxhighlight lang="c">
|