Test your knowledge
Let's see whether you can answer the following questions correctly:
- Which of the following Python modules is the Paho Python Client?
paho-mqtt
paho-client-pip
paho-python-client
- To establish a connection with an MQTT server that uses TLS, which method do you have to call for the
paho.mqtt.client.Client
instance before callingconnect
?connect_with_tls
tls_set
configure_tls
- After the
paho.mqtt.client.Client
instance establishes a connection with the MQTT server, the callback assigned to which of the following attributes will be called?on_connection
on_connect
connect_callback
- After the
paho.mqtt.client.Client
instance receives a message from one of the topic filters to which it has subscribed, the callback assigned to which of the following attributes will be called?on_message_arrived
on_message
message_arrived_callback
- Which of the following methods of a
paho.mqtt.client.Client
instance calls the loop method for us in an infinite blocking loop?infinite_loop
loop_while_true
loop_forever...