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 682 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.
  • SoloamS Offline
    SoloamS 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
    • SoloamS 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
      • SoloamS Offline
        SoloamS 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
        • SoloamS 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
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          30

          Online

          11.7k

          Users

          11.2k

          Topics

          113.1k

          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