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