MQTT Gateway Configuration


  • Hardware Contributor

    Hello all, a quick but important question. When we add a new mqtt gateway, I get several fields, please confirm:

    QoS: << Zero? Or should I use 1? >>
    Broker host: << The Broker That The MQTT Gateway is pointing to. MY_CONTROLLER_IP_ADDRESS variable >>
    Client id: <<The Gateway ID? Or A Id to The Controller?>>
    Topic publish: << MY_MQTT_SUBSCRIBE_TOPIC_PREFIX variable from gateway >>
    Topic subscribe: << MY_MQTT_PUBLISH_TOPIC_PREFIX variable from gateway >>

    I've been having some problems with the controller and MQTT, and I was wondering if it's some miss configuration

    Using https://www.mysensors.org/build/mqtt_gateway as reference

    Thank You


  • Mod

    @Soloam

    QoS: where did you find this? I was unable to find it on the gateway page you linked to, and the MySensors source code does not seem to use it.
    Broker host: this is not mentioned on the gateway page either. Where did you find it?
    Client id: this is an id for the gateway, to make it different if you have multiple mqtt gateways.
    Topic publish, Topic subscribe: These set which topics the gateway should post messages to and read messages from.


  • Hardware Contributor

    I think I dind't explain myself proprely, sorry, probably lost in translation.

    I was talking about MyController gateway configuration:

    0_1517508702815_5ae46ab5-8e4b-4532-aa83-77dba4573ed7-image.png

    The Fields on the screen:

    QoS: << Zero? Or should I use 1? >>
    Broker host: This Is the MQTT Broker Address?
    Client id: Is this a unic name to the MyController client, or the GW Name?
    Topic publish: The topics where the Mysensors GW is submitting?
    Topic subscribe: The topics where the Mysensors GW is Subscribing?

    Thank you


  • Mod

    @soloam said in MQTT Gateway Configuration:

    QoS: << Zero? Or should I use 1? >>

    It's up to you, just Google it to see what different qos levels do, either would probably work just fine

    Broker host: This Is the MQTT Broker Address?

    The ip address of mqtt broker

    Client id: Is this a unic name to the MyController client, or the GW Name?

    Choose whatever you like, just make it unique

    Topic publish: The topics where the Mysensors GW is submitting?

    That is where gw is subscribed listening for data

    Topic subscribe: The topics where the Mysensors GW is Subscribing?

    That is where gw publishes the data

    Keep in mind that mycontroller has a built-in mqtt broker, so you have to disable it if you are using it on the same computer as the other mqtt broker


  • Hardware Contributor

    Thank you for your replay. My main doubt was the client-id, I didn't understand if it was a unic name or the GW client-id. You answered my question.

    Thank You for your help


Log in to reply
 

Suggested Topics

0
Online

11.2k
Users

11.1k
Topics

112.5k
Posts