58 try: |
58 try: |
59 import paho.mqtt |
59 import paho.mqtt |
60 version = paho.mqtt.__version__ |
60 version = paho.mqtt.__version__ |
61 except ImportError: |
61 except ImportError: |
62 version = QCoreApplication.translate( |
62 version = QCoreApplication.translate( |
63 "MqttMonitorPlugin", "package not available") |
63 "MqttMonitorPlugin", "(package not available)") |
64 |
64 |
65 data = { |
65 data = { |
66 "programEntry": False, |
66 "programEntry": False, |
67 "header": QCoreApplication.translate("MqttMonitorPlugin", "MQTT"), |
67 "header": QCoreApplication.translate("MqttMonitorPlugin", "MQTT"), |
68 "text": QCoreApplication.translate("MqttMonitorPlugin", "paho-mqtt"), |
68 "text": QCoreApplication.translate("MqttMonitorPlugin", "paho-mqtt"), |