O'Reilly logo

Mastering Internet of Things by Peter Waher

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Communicating More Efficiently Using CoAP

In the previous two chapters, you learned how to use the HTTP protocol to publish your data and to interact with your devices. But HTTP has some limitations when it comes to resource-constrained devices: it is very verbose and consumes a lot of bandwidth compared to the amount of data being transported.

In this chapter, you'll learn how to use the Constrained Application Protocol, or CoAP, to create interfaces for resource-constrained devices, typically devices in networks where bandwidth is an issue. The chapter covers:

  • An introduction to the CoAP protocol
  • Security in CoAP
  • Content encoding in CoAP
  • Publishing data using CoAP
  • The Observe or Event Subscription communication pattern
  • Responding to control ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required