Paho MQTT client version [message #1868436] |
Fri, 19 July 2024 06:37 |
Eclipse User |
|
|
|
A Python module, using MQTT, is to run on various computers. They all have PAHO MQTT python package installed, however both old (pre 2.0) versions and more recent (post 2.0) versions. In the transition phase, which may take months to more than a year, the aforementioned module must run with both old and young versions of the PAHO MQTT modules. I did not find any function which can deliver the version number. How to retrieve the version number of the client software?
Note: my module starts with
import paho.mqtt.client as mqtt
and creates a connection with
self.client= mqtt.Client( self.mcname )
which needs to be different for version 2.x.
|
|
|
Powered by
FUDForum. Page generated in 0.03397 seconds