Paho MQTT Python Client Version 2

The Paho MQTT python client version 2 introduced some changes that break easier scripts. All of the scripts currently available on this site used the 1.5 to 1.6 client version and so if you upgrade to the new version you will need to make changes to these scripts. The changes revolve around the callback functions which have been changed to take into account the properties feature of MQTTv5.…