Constrained Application Protocol: Link Format .Well-Known/core
Constrained Application Protocol: Link Format .Well-Known/core
0 +--------------------------+-----+
0 1 2 3 4 5 6 7 | text/plain;charset=utf-8 | 0 |
+-+-+-+-+-+-+-+-+ | application/link-format | 40 | Observe
|class| detail | | application/xml | 41 |
+-+-+-+-+-+-+-+-+ | application/octet-stream | 42 | In order to follow state changes of CoAP resources the Observe
| application/exi | 47 |
| application/json | 50 |
option can be used.
+------------------+------------------------------+--------------+ | application/cbor | 60 |
| Code | Description | | +--------------------------+-----+ +-----+---+---+---+---+---------+------------+-----------+---------+
+------------------+------------------------------+--------------+
| No. | C | U | N | R | Name | Format | Length | Default |
| 2.01 (65, 0x41) | Created | Success |
+-----+---+---+---+---+---------+------------+-----------+---------+
| 2.02 (66, 0x42) | Deleted | |
| 2.03 (67, 0x43) | Valid
| 2.04 (68, 0x44) | Changed
|
|
|
|
URI schemes | 6 | | x | - | | Observe | uint | 0-3 B | (none) |
+-----+---+---+---+---+---------+------------+-----------+---------+
| 2.05 (69, 0x45) | Content | | coap-URI = "coap:" "//" host [ ":" port ] path-abempty [ "?" query ]
| 2.31 (95, 0x5F) | Continue | | coaps-URI = "coaps:" "//" host [ ":" port ] path-abempty [ "?" query ]
+------------------+------------------------------+--------------+
| 4.00 (128, 0x80) | Bad Request | Client Error |
References
| 4.01 (129, 0x81) | Unauthorized
| 4.02 (130, 0x82) | Bad Option
|
|
|
| Transmission parameters This cheatsheet is based on and heavily stole from the following
| 4.03 (131, 0x83) | Forbidden | | +-------------------+---------------+ documents:
| 4.04 (132, 0x84) | Not Found | | | name | default value | Link-format: http://tools.ietf.org/html/rfc6690
| 4.05 (133, 0x85) | Method Not Allowed | | +-------------------+---------------+ CoAP: http://tools.ietf.org/html/rfc7252
| 4.06 (134, 0x86) | Not Acceptable | | | ACK_TIMEOUT | 2 seconds | Block: http://tools.ietf.org/html/rfc7959
| 4.08 (136, 0x88) | Request Entity Incomplete | | | ACK_RANDOM_FACTOR | 1.5 | Observe: http://tools.ietf.org/html/rfc7641