question about "mqtt-quick-introduction"
Hi. I've been following the mqtt quick intro and everything worked fine until the very last part. It seems I cannot get the subscription working. I keep on publishing sensor updates but I dont see anything here:
mosquitto_sub -h localhost -p 1884 -t my.sensors.notifications/#
instead on this topic I see the updates:
mosquitto_sub -h localhost -p 1884 -d -t my.sensors/sensor01
I am running everything on a local machine with docker and I use 2 mqtt services:
hivemq: image: hivemq/hivemq4 networks: default: aliases: - hivemq ports: - 8181:8080 - 1883:1883
mosquitto: image: eclipse-mosquitto networks: default: aliases: - mosquitto ports: - 1884:1883 - 9002:9001 volumes: - ./mosquitto.conf:/mosquitto/config/mosquitto.conf
The mosquitto conf: listener 1883 listener 9002 protocol websockets allow_anonymous true
In the json connections I am using these uri:
source "uri": "tcp://hivemq:1883",
target "uri": "tcp://mosquitto:1883",
Am I making mistakes with anything?