O'Reilly logo

Hands-On MQTT Programming with Python by Gaston C. Hillar

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

Testing and Improving Our Vehicle Control Solution in Python

In this chapter, we will use our vehicle control solution with MQTT messages and Python code. We will learn how to process commands received in MQTT messages with Python code. We will write Python code to compose and send MQTT messages with commands. We will work with the blocking and threaded network loops and we will understand their difference. Finally, we will take advantage of the last will and testament feature. We will take an in-depth look at the following:

  • Processing commands with Python
  • Sending messages with Python
  • Working with the network loop with Python
  • Working with last will and testament with Python
  • Working with retained last will messages
  • Understanding blocking ...

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