April 2017
Intermediate to advanced
280 pages
6h 18m
English
Now, we will write Python code that will run on the different IoT boards. Remember to copy the files we have created in the previous chapter to a directory in the computer or device that will represent the board that controls a drone and that we will use to run a Python script. We saved the files in a directory called certificates. Create a python_certificates directory in the computer or board you are going to use as the MQTT client for this example. Copy the following three files to this new directory:
ca.crt: Certificate authority certificate filedevice001.crt: Client certificate filedevice001.key: Client keyWe will create the following two classes:
Drone: This class will represent a drone and provides methods ...Read now
Unlock full access