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. Troubleshooting
  3. MQTT Gateway Disconnects from Broker

MQTT Gateway Disconnects from Broker

Scheduled Pinned Locked Moved Troubleshooting
4 Posts 2 Posters 935 Views 2 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
    #1

    I'm having a problem with my MQTT gateway, it keeps connecting and disconnecting from my MQTT broker. This problem is solved when I restart the mosquitto server, only to come back again some time later...

    This is my MQTT topics

    mygateway1-out/0/255/0/0/18 2.1.1
    mygateway1-out/0/255/0/0/18 2.1.1
    mygateway1-out/0/255/0/0/18 2.1.1
    mygateway1-out/0/255/0/0/18 2.1.1
    mygateway1-out/0/255/0/0/18 2.1.1
    mygateway1-out/0/255/0/0/18 2.1.1
    mygateway1-out/0/255/0/0/18 2.1.1
    mygateway1-out/0/255/0/0/18 2.1.1
    mygateway1-out/0/255/0/0/18 2.1.1
    mygateway1-out/0/255/0/0/18 2.1.1
    mygateway1-out/0/255/0/0/18 2.1.1
    mygateway1-out/0/255/0/0/18 2.1.1
    mygateway1-out/100/0/1/0/1 42.0
    mygateway1-out/0/255/0/0/18 2.1.1
    mygateway1-out/0/255/0/0/18 2.1.1
    mygateway1-out/0/255/0/0/18 2.1.1
    mygateway1-out/100/0/1/0/1 42.0
    mygateway1-out/0/255/0/0/18 2.1.1
    mygateway1-out/0/255/0/0/18 2.1.1
    mygateway1-out/100/0/1/0/1 41.0
    mygateway1-out/0/255/0/0/18 2.1.1
    mygateway1-out/0/255/0/0/18 2.1.1
    mygateway1-out/100/1/1/0/0 19.0
    mygateway1-out/100/0/1/0/1 42.0
    mygateway1-out/0/255/0/0/18 2.1.1
    mygateway1-out/100/0/1/0/1 41.0
    mygateway1-out/0/255/0/0/18 2.1.1
    mygateway1-out/0/255/0/0/18 2.1.1
    mygateway1-out/100/0/1/0/1 42.0
    mygateway1-out/0/255/0/0/18 2.1.1
    mygateway1-out/0/255/0/0/18 2.1.1
    mygateway1-out/100/0/1/0/1 41.0
    mygateway1-out/0/255/0/0/18 2.1.1
    mygateway1-out/0/255/0/0/18 2.1.1
    mygateway1-out/0/255/0/0/18 2.1.1
    mygateway1-out/0/255/0/0/18 2.1.1
    mygateway1-out/0/255/0/0/18 2.1.1
    mygateway1-out/0/255/0/0/18 2.1.1
    mygateway1-out/0/255/0/0/18 2.1.1
    mygateway1-out/0/255/0/0/18 2.1.1
    mygateway1-out/100/0/1/0/1 42.0
    mygateway1-out/0/255/0/0/18 2.1.1
    mygateway1-out/0/255/0/0/18 2.1.1
    mygateway1-out/100/0/1/0/1 41.0
    mygateway1-out/0/255/0/0/18 2.1.1
    mygateway1-out/0/255/0/0/18 2.1.1
    mygateway1-out/0/255/0/0/18 2.1.1
    mygateway1-out/100/0/1/0/1 42.0
    mygateway1-out/0/255/0/0/18 2.1.1
    mygateway1-out/0/255/0/0/18 2.1.1
    mygateway1-out/100/1/1/0/0 19.0
    mygateway1-out/0/255/0/0/18 2.1.1
    mygateway1-out/0/255/0/0/18 2.1.1
    mygateway1-out/0/255/0/0/18 2.1.1
    mygateway1-out/0/255/0/0/18 2.1.1
    mygateway1-out/0/255/0/0/18 2.1.1
    mygateway1-out/0/255/0/0/18 2.1.1
    mygateway1-out/0/255/0/0/18 2.1.1
    mygateway1-out/0/255/0/0/18 2.1.1
    mygateway1-out/0/255/0/0/18 2.1.1
    mygateway1-out/0/255/0/0/18 2.1.1
    mygateway1-out/0/255/0/0/18 2.1.1
    mygateway1-out/0/255/0/0/18 2.1.1
    mygateway1-out/0/255/0/0/18 2.1.1
    mygateway1-out/0/255/0/0/18 2.1.1
    mygateway1-out/0/255/0/0/18 2.1.1
    mygateway1-out/0/255/0/0/18 2.1.1
    mygateway1-out/0/255/0/0/18 2.1.1
    mygateway1-out/0/255/0/0/18 2.1.1
    mygateway1-out/100/0/1/0/1 42.0
    mygateway1-out/0/255/0/0/18 2.1.1
    mygateway1-out/0/255/0/0/18 2.1.1
    mygateway1-out/100/1/1/0/0 19.0
    mygateway1-out/0/255/0/0/18 2.1.1
    mygateway1-out/0/255/0/0/18 2.1.1
    mygateway1-out/0/255/0/0/18 2.1.1
    mygateway1-out/0/255/0/0/18 2.1.1
    mygateway1-out/0/255/0/0/18 2.1.1
    mygateway1-out/0/255/0/0/18 2.1.1
    mygateway1-out/0/255/0/0/18 2.1.1
    mygateway1-out/0/255/0/0/18 2.1.1
    mygateway1-out/0/255/0/0/18 2.1.1
    mygateway1-out/0/255/0/0/18 2.1.1
    mygateway1-out/0/255/0/0/18 2.1.1
    mygateway1-out/0/255/0/0/18 2.1.1
    mygateway1-out/0/255/0/0/18 2.1.1
    mygateway1-out/0/255/0/0/18 2.1.1
    mygateway1-out/0/255/0/0/18 2.1.1
    mygateway1-out/0/255/0/0/18 2.1.1
    mygateway1-out/100/0/1/0/1 42.0
    mygateway1-out/0/255/0/0/18 2.1.1
    mygateway1-out/0/255/0/0/18 2.1.1
    mygateway1-out/100/1/1/0/0 19.0
    mygateway1-out/0/255/0/0/18 2.1.1
    mygateway1-out/0/255/0/0/18 2.1.1
    mygateway1-out/0/255/0/0/18 2.1.1
    mygateway1-out/0/255/0/0/18 2.1.1
    mygateway1-out/0/255/0/0/18 2.1.1
    mygateway1-out/0/255/0/0/18 2.1.1
    mygateway1-out/0/255/0/0/18 2.1.1
    mygateway1-out/0/255/0/0/18 2.1.1
    mygateway1-out/0/255/0/0/18 2.1.1
    mygateway1-out/0/255/0/0/18 2.1.1
    mygateway1-out/0/255/0/0/18 2.1.1
    mygateway1-out/0/255/0/0/18 2.1.1
    mygateway1-out/0/255/0/0/18 2.1.1
    mygateway1-out/100/0/1/0/1 41.0
    mygateway1-out/0/255/0/0/18 2.1.1
    

    This output is only from more or less 5 min, At this time the service is unusable. I have to restart it to regain control.

    Thank You

    mfalkviddM 1 Reply Last reply
    0
    • S Soloam

      I'm having a problem with my MQTT gateway, it keeps connecting and disconnecting from my MQTT broker. This problem is solved when I restart the mosquitto server, only to come back again some time later...

      This is my MQTT topics

      mygateway1-out/0/255/0/0/18 2.1.1
      mygateway1-out/0/255/0/0/18 2.1.1
      mygateway1-out/0/255/0/0/18 2.1.1
      mygateway1-out/0/255/0/0/18 2.1.1
      mygateway1-out/0/255/0/0/18 2.1.1
      mygateway1-out/0/255/0/0/18 2.1.1
      mygateway1-out/0/255/0/0/18 2.1.1
      mygateway1-out/0/255/0/0/18 2.1.1
      mygateway1-out/0/255/0/0/18 2.1.1
      mygateway1-out/0/255/0/0/18 2.1.1
      mygateway1-out/0/255/0/0/18 2.1.1
      mygateway1-out/0/255/0/0/18 2.1.1
      mygateway1-out/100/0/1/0/1 42.0
      mygateway1-out/0/255/0/0/18 2.1.1
      mygateway1-out/0/255/0/0/18 2.1.1
      mygateway1-out/0/255/0/0/18 2.1.1
      mygateway1-out/100/0/1/0/1 42.0
      mygateway1-out/0/255/0/0/18 2.1.1
      mygateway1-out/0/255/0/0/18 2.1.1
      mygateway1-out/100/0/1/0/1 41.0
      mygateway1-out/0/255/0/0/18 2.1.1
      mygateway1-out/0/255/0/0/18 2.1.1
      mygateway1-out/100/1/1/0/0 19.0
      mygateway1-out/100/0/1/0/1 42.0
      mygateway1-out/0/255/0/0/18 2.1.1
      mygateway1-out/100/0/1/0/1 41.0
      mygateway1-out/0/255/0/0/18 2.1.1
      mygateway1-out/0/255/0/0/18 2.1.1
      mygateway1-out/100/0/1/0/1 42.0
      mygateway1-out/0/255/0/0/18 2.1.1
      mygateway1-out/0/255/0/0/18 2.1.1
      mygateway1-out/100/0/1/0/1 41.0
      mygateway1-out/0/255/0/0/18 2.1.1
      mygateway1-out/0/255/0/0/18 2.1.1
      mygateway1-out/0/255/0/0/18 2.1.1
      mygateway1-out/0/255/0/0/18 2.1.1
      mygateway1-out/0/255/0/0/18 2.1.1
      mygateway1-out/0/255/0/0/18 2.1.1
      mygateway1-out/0/255/0/0/18 2.1.1
      mygateway1-out/0/255/0/0/18 2.1.1
      mygateway1-out/100/0/1/0/1 42.0
      mygateway1-out/0/255/0/0/18 2.1.1
      mygateway1-out/0/255/0/0/18 2.1.1
      mygateway1-out/100/0/1/0/1 41.0
      mygateway1-out/0/255/0/0/18 2.1.1
      mygateway1-out/0/255/0/0/18 2.1.1
      mygateway1-out/0/255/0/0/18 2.1.1
      mygateway1-out/100/0/1/0/1 42.0
      mygateway1-out/0/255/0/0/18 2.1.1
      mygateway1-out/0/255/0/0/18 2.1.1
      mygateway1-out/100/1/1/0/0 19.0
      mygateway1-out/0/255/0/0/18 2.1.1
      mygateway1-out/0/255/0/0/18 2.1.1
      mygateway1-out/0/255/0/0/18 2.1.1
      mygateway1-out/0/255/0/0/18 2.1.1
      mygateway1-out/0/255/0/0/18 2.1.1
      mygateway1-out/0/255/0/0/18 2.1.1
      mygateway1-out/0/255/0/0/18 2.1.1
      mygateway1-out/0/255/0/0/18 2.1.1
      mygateway1-out/0/255/0/0/18 2.1.1
      mygateway1-out/0/255/0/0/18 2.1.1
      mygateway1-out/0/255/0/0/18 2.1.1
      mygateway1-out/0/255/0/0/18 2.1.1
      mygateway1-out/0/255/0/0/18 2.1.1
      mygateway1-out/0/255/0/0/18 2.1.1
      mygateway1-out/0/255/0/0/18 2.1.1
      mygateway1-out/0/255/0/0/18 2.1.1
      mygateway1-out/0/255/0/0/18 2.1.1
      mygateway1-out/0/255/0/0/18 2.1.1
      mygateway1-out/100/0/1/0/1 42.0
      mygateway1-out/0/255/0/0/18 2.1.1
      mygateway1-out/0/255/0/0/18 2.1.1
      mygateway1-out/100/1/1/0/0 19.0
      mygateway1-out/0/255/0/0/18 2.1.1
      mygateway1-out/0/255/0/0/18 2.1.1
      mygateway1-out/0/255/0/0/18 2.1.1
      mygateway1-out/0/255/0/0/18 2.1.1
      mygateway1-out/0/255/0/0/18 2.1.1
      mygateway1-out/0/255/0/0/18 2.1.1
      mygateway1-out/0/255/0/0/18 2.1.1
      mygateway1-out/0/255/0/0/18 2.1.1
      mygateway1-out/0/255/0/0/18 2.1.1
      mygateway1-out/0/255/0/0/18 2.1.1
      mygateway1-out/0/255/0/0/18 2.1.1
      mygateway1-out/0/255/0/0/18 2.1.1
      mygateway1-out/0/255/0/0/18 2.1.1
      mygateway1-out/0/255/0/0/18 2.1.1
      mygateway1-out/0/255/0/0/18 2.1.1
      mygateway1-out/0/255/0/0/18 2.1.1
      mygateway1-out/100/0/1/0/1 42.0
      mygateway1-out/0/255/0/0/18 2.1.1
      mygateway1-out/0/255/0/0/18 2.1.1
      mygateway1-out/100/1/1/0/0 19.0
      mygateway1-out/0/255/0/0/18 2.1.1
      mygateway1-out/0/255/0/0/18 2.1.1
      mygateway1-out/0/255/0/0/18 2.1.1
      mygateway1-out/0/255/0/0/18 2.1.1
      mygateway1-out/0/255/0/0/18 2.1.1
      mygateway1-out/0/255/0/0/18 2.1.1
      mygateway1-out/0/255/0/0/18 2.1.1
      mygateway1-out/0/255/0/0/18 2.1.1
      mygateway1-out/0/255/0/0/18 2.1.1
      mygateway1-out/0/255/0/0/18 2.1.1
      mygateway1-out/0/255/0/0/18 2.1.1
      mygateway1-out/0/255/0/0/18 2.1.1
      mygateway1-out/0/255/0/0/18 2.1.1
      mygateway1-out/100/0/1/0/1 41.0
      mygateway1-out/0/255/0/0/18 2.1.1
      

      This output is only from more or less 5 min, At this time the service is unusable. I have to restart it to regain control.

      Thank You

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

      @soloam what type of gateway is this? (esp8266, wiznet, etc). How is it powered (most common problem is restarts due to insufficient power). What does the gateway debug log say?

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

        I'm trying to get a Log to show, but when I unplug the GW to plug it to the pc to get the serial console, I lose the error.

        This is a Arduino Mini powerd by a mobile phone charger with a W5100.

        Thank You

        mfalkviddM 1 Reply Last reply
        0
        • S Soloam

          I'm trying to get a Log to show, but when I unplug the GW to plug it to the pc to get the serial console, I lose the error.

          This is a Arduino Mini powerd by a mobile phone charger with a W5100.

          Thank You

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

          @soloam you can connect the ftdi and the charger at the same time. Just skip connecting Vcc from the ftdi.

          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


          31

          Online

          12.1k

          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