Skip to content
  • MySensors
  • OpenHardware.io
  • Categories
  • Recent
  • Tags
  • Popular
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo
  1. Home
  2. Controllers
  3. MyController.org
  4. MQTT Gateway Configuration

MQTT Gateway Configuration

Scheduled Pinned Locked Moved MyController.org
5 Posts 3 Posters 2.1k Views 3 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    Soloam
    Hardware Contributor
    wrote on last edited by Soloam
    #1

    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

    mfalkviddM 1 Reply Last reply
    0
    • S Soloam

      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

      mfalkviddM Offline
      mfalkviddM Offline
      mfalkvidd
      Mod
      wrote on last edited by
      #2

      @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.

      1 Reply Last reply
      0
      • S Offline
        S Offline
        Soloam
        Hardware Contributor
        wrote on last edited by
        #3

        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

        gohanG 1 Reply Last reply
        1
        • S Soloam

          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

          gohanG Offline
          gohanG Offline
          gohan
          Mod
          wrote on last edited by
          #4

          @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

          1 Reply Last reply
          1
          • S Offline
            S Offline
            Soloam
            Hardware Contributor
            wrote on last edited by
            #5

            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

            1 Reply Last reply
            1

            Hello! It looks like you're interested in this conversation, but you don't have an account yet.

            Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

            With your input, this post could be even better 💗

            Register Login
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            21

            Online

            12.0k

            Users

            11.2k

            Topics

            113.4k

            Posts


            Copyright 2025 TBD   |   Forum Guidelines   |   Privacy Policy   |   Terms of Service
            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • MySensors
            • OpenHardware.io
            • Categories
            • Recent
            • Tags
            • Popular