Resolved issue with Paho V2 API

Chnaged client creation logic to V2 API as we are already using Paho2.0. Chnaged 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.
This commit is contained in:
Ingo Ratsdorf
2024-08-17 14:00:39 +12:00
parent 7fd8b039ed
commit b7fa32f70a
2 changed files with 27 additions and 16 deletions

View File

@@ -767,8 +767,8 @@
{ "elementType": "select", "elementOptions": [], "transformers": [] }
]
},
"default_value": 1,
"options": [1, 2],
"default_value": 5,
"options": [3, 5],
"localized": ["name", "description"],
"name": [
{
@@ -779,7 +779,7 @@
"description": [
{
"language_code": "en_us",
"string": "Paho MQTT API version. Depends on the MQTT <a href=\"https://eclipse.dev/paho/files/paho.mqtt.python/html/index.html#callbacks\" target=\"_blank\">version supported by the MQTT broker</a>. Usually set to <code>1</code>."
"string": "MQTT Protocol version. Depends on the MQTT broker</a>. Usually set to <code>5</code>, or <code>3</code> for backwards compatibility."
}
]
},