您的位置:首页 > 产品设计 > UI/UE

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 SendsMessage Successfully Parsed and Understood By ServerServer Has all Information to Process the Request and can Successfully ProcessServer Sends Message TypeServer Sends Message CodeRemarks
CONYESYESACKOne of success response codesHappy day scenario
CONYESNOACKOne of failed response codesURI path in request is wrong and 4.04 not found is sent in ACK
CONNONORSTOne of failed response codese.g. Unknown message code
NONYESYESNo response sent back
NONYESYESNONOne of success response codesResponse sent back as NON message
NONYESNORSTOne of failed response codesURI path in request is wrong and 4.04 not found is sent in RST
NONNONORSTOne of failed response codese.g. Unknown message code
NONYESYESCONOne of request codese.g. Previous NON request was for a data that requires confirmation from the sender on whether it reached the client or not
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: