paho-mqtt

MQTT is the protocol that the Smart Doorbell application uses to communicate to the outside world. For this, we require the paho-mqtt library.

To install this library, do the following:

  1. In Thonny, click on Tools | Manage packages....
  2. Type in paho-mqtt in the search box and click on the Find package from PyPI button. 
  3. Click on the ... box next to the Install button at the bottom of the screen:

  1. Check the Upgrade dependencies checkbox and click on the Install button below the checkbox.
  2. Verify that you are able to successfully install the paho-mqtt library before moving on to the next step.
Personally, I have found that some libraries may produce errors when installed via the system shell, while other libraries produce errors when installed via the package manager. If you find issues with one method of installing libraries in Thonny, you may try the other method—this may resolve them. 

Now that we have our development environment set up, let's start writing some code.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
13.59.38.41