I’m not following your question. I was able to connect to test.mosquitto.org using the following configuration.
[MQTTSubscribeDriver]
driver = user.MQTTSubscribe
host = test.mosquitto.org
port = 8886
[[tls]]
tls_version = tls
.
.
.
rich
[[tls]]
tls_version = tls
The problem now is I'm getting an error code 5 - I'm sure it's something simple.
CRITICAL weewx.engine: **** weewx.WeeWxIOError: Unable to connect. Return code is 5 flags are {'session present': 0}.
here's my config for that now which fails:
# The driver to use:
driver = user.MQTTSubscribe
# The MQTT server.
# Default is localhost.
host = **************.s2.eu.hivemq.cloud
# The port to connect to.
# Default is 1883.
port = 8883
[[tls]]
tls_version = tls
# Maximum period in seconds allowed between communications with the broker.
# Default is 60.
keepalive = 60
# username for broker authentication.
# Default is None.
username = *******
# password for broker authentication.
# Default is None.
password = *********
# Configuration for the message callback.
[[message_callback]]