Test your knowledge
Let's see whether you can answer the following questions correctly:
- Which of the following methods of the
paho.mqtt.client.Clientinstance blocks execution and ensures communication with the MQTT server is carried out?looploop_startblocking_loop
- Which of the following methods of the
paho.mqtt.client.Clientinstance starts a new thread and ensures communication with the MQTT server is carried out?looploop_startnon_blocking_loop
- Which of the following methods of the
paho.mqtt.client.Clientinstance configures a last will message to be sent to the MQTT server if the client disconnects unexpectedly?last_will_publishlast_will_messagewill_set
- Which of the following methods of the
paho.mqtt.client.Clientinstance stops the thread that is running the threaded client interface?loop_endnon_blocking_loop_stoploop_stop
- Which of the following methods is non-blocking?
loop_startnon_blocking_looploop_forever
The right answers are included in the Appendix, Solutions.