I mean
[[MQTT]]
server_url = mqtt://pi:password@url:8883/
topic = weather
unit_system = METRIC
binding = archive, loop
aggregation = aggregate
log_success = False
log_failure = True
[[[tls]]]
tls_version = tlsv12
ca_certs = /etc/ssl/certs/ca-certificates.crt
[[[inputs]]]
[[[[dayRain]]]]
name = dayRain_mm
units = mm
[[[[rainRate]]]]
name = rainRate_mm_per_hour
units = mm_per_hour
[email protected] schrieb am Mittwoch, 23. Dezember 2020 um 22:44:59 UTC+1:
> Hi,
>
> have you set tlsv12 in weewx.conf under [[MQTT]] Section?
>
> Like
>
>
>
> [email protected] schrieb am Mittwoch, 23. Dezember 2020 um 22:36:27
> UTC+1:
>
>> Thank you Greg,
>> so I have tried:
>> pi@WeeWX:~ $ mosquitto_pub -h localhost -p 8883 -t "weather/test" -m
>> "hello world. this is to the weather topic with authentication" -u "pi" -P
>> "<passwd>" -d
>> Client mosqpub|24614-WeeWX sending CONNECT
>> Error: The connection was lost.
>>
>> with port 1883 it works:
>>
>> pi@WeeWX:~ $ mosquitto_pub -h localhost -p 1883 -t "weather/test" -m
>> "hello world. this is to the weather topic with authentication" -u "pi" -P
>> " <passwd> " -d
>> Client mosqpub|24645-WeeWX sending CONNECT
>> Client mosqpub|24645-WeeWX received CONNACK (0)
>> Client mosqpub|24645-WeeWX sending PUBLISH (d0, q0, r0, m1,
>> 'weather/test', ... (61 bytes))
>> Client mosqpub|24645-WeeWX sending DISCONNECT
>>
>> mosquitto_sub is like:
>> pi@WeeWX:~ $ mosquitto_sub -h localhost -p 8883 -t weather/# -d
>> Client mosqsub|24569-WeeWX sending CONNECT
>> Client mosqsub|24569-WeeWX sending CONNECT
>>
>> again, with port 1883 it works:
>> pi@WeeWX:~ $ mosquitto_sub -h localhost -p 1883 -t weather/# -d
>> Client mosqsub|24659-WeeWX sending CONNECT
>> Client mosqsub|24659-WeeWX received CONNACK (0)
>> Client mosqsub|24659-WeeWX sending SUBSCRIBE (Mid: 1, Topic: weather/#,
>> QoS: 0)
>> Client mosqsub|24659-WeeWX received SUBACK
>> Subscribed (mid: 1): 0
>>
>> I have installed tcpdump, which parameters am I looking for?
>>
>> Thanks,
>> Michal
>>
>> Dátum: streda 23. decembra 2020, čas: 20:55:28 UTC+1, odosielateľ: Greg
>> Troxel
>>
>>>
>>> Hard to say what's wrong, but use mosquitto_publish to test. I have
>>> the emqtt extension publishing to mqtt/tls just fine and I do not run
>>> mqtt w/o ssl at all.
>>>
>>> Turn on logging on th broker, and look with tcpdump.
>>>
>>
--
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/1a9c2be5-be0e-4ad1-9443-6b08c6132544n%40googlegroups.com.