# CoAP

CoAP is based on UDP and has built in mechanism for ensuring reliable delivery. For a good overview of CoAP, please see the following guides

{% embed url="<http://www.programmingwithreason.com/article-iot-coap.html>" %}

Another interesting tutorial

{% embed url="<https://dzone.com/articles/coap-protocol-step-by-step-guide>" %}

In IoTIFY CoAP protocol settings we allow following fields to be configured

![](https://1549501356-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LhKFvCh4dnxgthNTIuu%2F-M8PY-PEJTi5dwPBrIx2%2F-M8P_Dvd4S-yXiGpaevM%2Fimage.png?alt=media\&token=ba139c4a-4921-4174-b51f-71efbba25c96)

**Method:** CoAP method, which could be GET/POST/PUT/DELETE

**Host:** The CoAP Host name or IP address, followed by the port number (if not default)

**Path:** The CoAP server URL, where the message should be sent to. If you are using a query string, that must be the part of URL itself.&#x20;

**Confirm:** Whether the message should be sent as (Conformable) CON or (Unacknowledged) NON

**Observe:** Whether the resource should be observed and any changes should be sent back to the client. The response handler function will be invoked if a change is detected.&#x20;

**Additional Headers:** Any additional header which must be sent along with the payload.&#x20;

**Timeout:** The timeout value to wait before declaring a non confirmed message a failure.&#x20;
