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 weewx-user+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/862a3a2c-b345-48b4-b13c-839f503f124bn%40googlegroups.com.