CoAP (Constrained Application Protocol) is a lightweight application-layer protocol designed for use in Internet of Things (IoT) and Machine-to-Machine (M2M) communications. It is built on top of the User Datagram Protocol (UDP) and is similar in func…