October 2019
Intermediate to advanced
350 pages
9h 5m
English
Constrained Application Protocol (CoAP) is an IoT protocol for machine-to-machine communication. It has its roots in the HTTP protocol, which we talked about before—HTTP is the queen of internet protocols and is used to access content via web browsers.
CoAP follows the RESTful architectural model we briefly talked about before as well—your device can have different resources, let's say, a temperature sensor and a humidity sensor. It may then be accessible via its URL:
coap://host:port/api/v1/temperaturecoap://host:port/api/v1/humidity
Similarly to a RESTful API, you could receive its value by running a GET request to one of the preceding URLs. To store data, you would use POST.
CoAP and MQTT play in a similar league—they are both widely ...
Read now
Unlock full access