What is CoAP? (2020) | Learn Technology in 5 Minutes HD

03.02.2020
Hello, Welcome to another episode of “Learn Technology in 5-minutes from MAKERDEMY. In this episode, we will take a first look at CoAP, an application layer protocol designed for the Internet of Things. The CoAP stands for the Constrained Application Protocol and was created by the Internet Engineering Task Force. What do you think are the constraints that this protocol is intended to address? As we have seen in our previous episodes, a lot of IoT applications are built to operate in constrained environments and devices. We are talking of small, constrained embedded devices running on batteries and with very low ROM and RAM. We are also talking of low power, low bandwidth and lossy networks such as ipv6 over low power wireless area networks also known as the 6LowPAN. Simplistically, you can think of CoAP as HTTP that runs on UDP. While the HTTP protocol runs on TCP, it is document-centric, text-based and easy to read, it is an overkill when it comes to IoT, where, oftentimes all we want is to read data from sensors. The CoAP is a machine to machine application layer protocol that runs on UDP. Let us now look at some of the features of CoAP - The CoAP runs on UDP and is, therefore, a connectionless protocol. The CoAP is an asynchronous and a lightweight protocol. The CoAP is a very efficient RESTful protocol with a small and simple 4-byte header. The CoAP is a 1-to-1 protocol built based on the request/response client-server paradigm and is quite similar to HTTP. The CoAP supports built-in the discovery of services and resources. The CoAP is built to easily interface with HTTP, by design, for seamless integration with the web while at the same time being compatible with constrained devices and networks. CoAP supports GET, POST, PUT and DELETE just like the HTTP. However, unlike HTTP, CoAP deals with these exchanges asynchronously over UDP. Even though the CoAP is built on top of UDP, it comes with optional reliability. The CoAP defines 4 kinds of messages - Confirmable, non-confirmable, acknowledgment and reset. Requests and responses are carried in confirmable and non-confirmable messages. That is all from me in this video. We will take an in-depth view of the CoAP in our future videos. (If you liked this video and would like to buy our course Introduction to Raspberry Pi 4, you are in for a pleasant surprise. Please click on the link below to buy the course for $25 ONLY. Original price is $195. https://utm.io/urB4) Check us out on Website : https://makerdemy.com Catalogue : https://makerdemy1.teachable.com Facebook : https://www.facebook.com/Makerdemy/ Twitter : https://twitter.com/makerdemy LinkedIn : https://in.linkedin.com/company/makerdemy Instagram : https://www.instagram.com/makerdemy/ Email : support@makerdemy.com #CoAP #CoAPvsMQTT #CoAPvsHTTP

Похожие видео

Показать еще