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

Test your knowledge

Let's see whether you can answer the following questions correctly:

  1. The PubNub MQTT interface requires us to use a client ID composed as follows:
    1. publish_key/subscribe_key/device_id
    2. device_id/publish_key/subscribe_key
    3. publish_key/device_id
  2. When we publish a message to the PubNub MQTT interface:
    1. It is only available on the PubNub MQTT subnetwork
    2. It becomes available on the PubNub network
    3. It requires a specific payload prefix to become available on the PubNub network
  1. Which of the following methods of the paho.mqtt.client.Client instance allows us to specify the callback function that the client has to call when it receives a message in a specific topic:
    1. message_callback_add
    2. message_arrived_to_topic_callback
    3. message_on_topic ...

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