PluginMqttMonitor.py

branch
eric7
changeset 143
51bc5bcc672a
parent 141
864edfb1bb63
child 145
3f8e91170c37
equal deleted inserted replaced
142:cf158867ed89 143:51bc5bcc672a
37 # Start-Of-Header 37 # Start-Of-Header
38 name = "MQTT Monitor Plugin" 38 name = "MQTT Monitor Plugin"
39 author = "Detlev Offenbach <detlev@die-offenbachs.de>" 39 author = "Detlev Offenbach <detlev@die-offenbachs.de>"
40 autoactivate = True 40 autoactivate = True
41 deactivateable = True 41 deactivateable = True
42 version = "10.5.0" 42 version = "11.0.0"
43 className = "MqttMonitorPlugin" 43 className = "MqttMonitorPlugin"
44 packageName = "MqttMonitor" 44 packageName = "MqttMonitor"
45 shortDescription = "Plug-in implementing a tool to connect to a MQTT broker" 45 shortDescription = "Plug-in implementing a tool to connect to a MQTT broker"
46 longDescription = ( 46 longDescription = (
47 """Plug-in implementing a tool to connect to a MQTT broker, subscribe""" 47 """Plug-in implementing a tool to connect to a MQTT broker, subscribe"""
59 59
60 mqttPluginObject = None 60 mqttPluginObject = None
61 61
62 62
63 def createMqttPage( 63 def createMqttPage(
64 configDlg, # noqa: U100 64 _configDlg,
65 ): 65 ):
66 """ 66 """
67 Module function to create the autocompletion configuration page. 67 Module function to create the autocompletion configuration page.
68 68
69 @param configDlg reference to the configuration dialog 69 @param _configDlg reference to the configuration dialog (unused)
70 @type ConfigurationWidget 70 @type ConfigurationWidget
71 @return reference to the configuration page 71 @return reference to the configuration page
72 @rtype AutoCompletionRopePage 72 @rtype AutoCompletionRopePage
73 """ 73 """
74 global mqttPluginObject 74 global mqttPluginObject
363 @type function 363 @type function
364 """ 364 """
365 try: 365 try:
366 import paho.mqtt # __IGNORE_WARNING__ 366 import paho.mqtt # __IGNORE_WARNING__
367 except ImportError: 367 except ImportError:
368 pipInstall(["paho-mqtt"]) 368 pipInstall(["paho-mqtt>=2.0.0"])
369 369
370 370
371 # 371 #
372 # eflag: noqa = M801, U200 372 # eflag: noqa = M801, U200

eric ide

mercurial