Skip to content

question about "mqtt-quick-introduction" #97

@gianpaolof

Description

@gianpaolof

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions