Rich, 

I was missing that part... but still not working... 

[[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]]
On Friday, November 3, 2023 at 5:43:10 PM UTC-4 [email protected] wrote:

> 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
>
>
> On Friday, 3 November 2023 at 14:18:06 UTC-4 Fjordey wrote:
>
>> Does anyone know if it is possible for MQTTSubscribeDriver to make a TLS 
>> connection? 
>> Using a cloud broker and they are all using TLS connections. (at least 
>> all the free brokers are)
>>
>> I dug into the readme files of that driver and it talks about having TLS 
>> added awhile back and shows how to add certs etc... but I do not see how to 
>> connect to MQTTS.
>>
>> FJ
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/83fee62e-7ab5-44e6-b164-960e1b6b910dn%40googlegroups.com.

Reply via email to