Changed client creation logic to V2 API as we are already using Paho2.0. Changed version selection from Paho version (which should not have been a user choice) to MQTT Protocol selection, which can be v3 or v5. Most modern MQQTT brokers like Mosquitta or EMQX support v5. Set default MQTT version to 5.
Previously, when a user selected Paho V2, the callback signature was invalid and Python errored out.
Changed client creation logic to V2 API as we are already using Paho2.0. Changed version selection from Paho version (which should not have been a user choice) to MQTT Protocol selection, which can be v3 or v5. Most modern MQQTT brokers like Mosquitta or EMQX support v5. Set default MQTT version to 5.
Previously, when a user selected Paho V2, the callback signature was invalid and Python errored out.