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-mqttpaho-client-pippaho-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.Clientinstance before callingconnect?connect_with_tlstls_setconfigure_tls
- After the
paho.mqtt.client.Clientinstance establishes a connection with the MQTT server, the callback assigned to which of the following attributes will be called?on_connectionon_connectconnect_callback
- After the
paho.mqtt.client.Clientinstance 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_arrivedon_messagemessage_arrived_callback
- Which of the following methods of a
paho.mqtt.client.Clientinstance calls the loop method for us in an infinite blocking loop?infinite_looploop_while_trueloop_forever...