CoAP Request and Response Rules
2016-04-07 18:34
501 查看
CoAP specification (at the time of this writing, draft-18) does not clearly set out rules that define what would be a response for a given CON or a NON request. Embedded within the specification are various rules that are outlined. While many rules are still open and not clearly defined, the table below is a guidance that we have started following. Please note, this should be treated only as a guidance and not as something that is clearly defined by the CoAP Specifications.
Client Sends | Message Successfully Parsed and Understood By Server | Server Has all Information to Process the Request and can Successfully Process | Server Sends Message Type | Server Sends Message Code | Remarks |
---|---|---|---|---|---|
CON | YES | YES | ACK | One of success response codes | Happy day scenario |
CON | YES | NO | ACK | One of failed response codes | URI path in request is wrong and 4.04 not found is sent in ACK |
CON | NO | NO | RST | One of failed response codes | e.g. Unknown message code |
NON | YES | YES | No response sent back | ||
NON | YES | YES | NON | One of success response codes | Response sent back as NON message |
NON | YES | NO | RST | One of failed response codes | URI path in request is wrong and 4.04 not found is sent in RST |
NON | NO | NO | RST | One of failed response codes | e.g. Unknown message code |
NON | YES | YES | CON | One of request codes | e.g. Previous NON request was for a data that requires confirmation from the sender on whether it reached the client or not |
相关文章推荐
- Could not find com.android.tools.build:gradle:1.3.0.
- android studio 构建系统基础build
- 3D Slicer+Qt-easy-build+VS2013
- Android学习笔记---第五天---基础UI组件---AnalogClock&TextClock&Chronometer(时钟与简单的计时器)
- 利用UEditor上传图片的注意点
- Access restriction: The type JFrame is not accessible due to restriction on required 错误
- UUID和UDID的常识
- UVA_10583_Ubiquitous Religions
- ios —— UIViewAdditions 布局坐标类库
- Ural 1183 Brackets Sequence(区间DP+记忆化搜索)
- UIColor *_color[5] UIColor数组
- DuiLib(7)——CTreeViewUI使用攻略
- requirejs加载css
- 79.iOS 设备的UI规范和iOS各控件默认高度
- 通用页面框架CmPage(一):简介
- [leetcode] 23. Merge k Sorted Lists
- EasyUI 使用心得
- Android gradle plugin和 Gradle版本关系\Gradle version 1.10 is required. Current version is 2.0
- Audio Session Programming Guide(官方文档翻译一)
- 深度评测xcgui(二)