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

Publishing Information Using MQTT

In the previous chapter, you learned how to create an actuator app that runs on the Raspberry Pi. You also learned how to do basic I/O directly using your Raspberry Pi.

In this chapter, we'll start publishing data we collect on the internet. The first protocol we'll study is the MQTT protocol. This chapter covers:

  • An introduction to the MQTT protocol
  • The Publish/Subscribe communication pattern
  • Connecting to a broker
  • Publishing information
  • Subscribing to information
  • Testing and troubleshooting communication
  • Basic security considerations

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