Eric Bruno

Feb 15, 2021

24 min read

CoAP Messaging In Depth

CoAP is a protocol not unlike HTTP or REST communication where the messages generally fall into the category of GET, POST, PUT, and DELETE. CoAP is also more conversational by nature since it’s request/response driven, as opposed to the publish/subscribe nature of MQTT (for details, see my article on MQTT).

At a lower level, CoAP messages are sent and received over UDP, which by nature is unreliable, so a basic reliability scheme is built into CoAP’s communication protocol on top of UDP. For added security, messages can be sent using Datagram Transport Layer Security (DTLS) protocol…

Love podcasts or audiobooks? Learn on the go with our new app.