MQTT Gateway Disconnects from Broker


  • Hardware Contributor

    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


  • Mod

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


  • Hardware Contributor

    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


  • Mod

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


Log in to reply
 

Suggested Topics

  • 3
  • 10
  • 2
  • 2
  • 24
  • 4

3
Online

11.2k
Users

11.1k
Topics

112.5k
Posts