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. W5100 MQTT gateway fails to connect to broker

W5100 MQTT gateway fails to connect to broker

Scheduled Pinned Locked Moved Troubleshooting
4 Posts 2 Posters 1.4k 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.
  • Matt PittsM Offline
    Matt PittsM Offline
    Matt Pitts
    wrote on last edited by
    #1

    I have always found everyone on this forum generally really helpful, so I'm hoping some will be able to help me solve my problem. I have recently been testing Home Assistant and I'm now trying to get mysenors up and running with it.

    I already have the latest verison of mosquitto up and running on my RPI without any problems and I've been able to publish and subcribe to topics, so I know its working OK.

    I have just compiled and uploaded the default W5100 MQTT gateway sketch and altered the various settings and when I restart the arduino I get the following in the serial monitor

    IP: 192.ting MQTT connection...
    IP: 192.168.0.87
    0;255;3;0;9;Attempting MQTT connection...
    0;255;3;0;9;Starting gateway (RNNGA-, 2.0.0)
    0;255;3;0;9;TSM:INIT
    0;255;3;0;9;TSM:RADIO:OK
    0;255;3;0;9;TSM:GW MODE
    0;255;3;0;9;TSM:READY
    IP: 192.168.0.87
    0;255;3;0;9;No registration required
    0;255;3;0;9;Init complete, id=0, parent=0, distance=0, registration=1
    IP: 192.168.0.87
    0;255;3;0;9;Attempting MQTT connection...
    IP: 192.168.0.87
    

    So the gateway is never able to connect to the MQTT broker. I have double checked everything and restarted, recomplied and still no luck. Am I missing something obvious, Any help would be very much appreciated

    blaceyB 1 Reply Last reply
    0
    • Matt PittsM Matt Pitts

      I have always found everyone on this forum generally really helpful, so I'm hoping some will be able to help me solve my problem. I have recently been testing Home Assistant and I'm now trying to get mysenors up and running with it.

      I already have the latest verison of mosquitto up and running on my RPI without any problems and I've been able to publish and subcribe to topics, so I know its working OK.

      I have just compiled and uploaded the default W5100 MQTT gateway sketch and altered the various settings and when I restart the arduino I get the following in the serial monitor

      IP: 192.ting MQTT connection...
      IP: 192.168.0.87
      0;255;3;0;9;Attempting MQTT connection...
      0;255;3;0;9;Starting gateway (RNNGA-, 2.0.0)
      0;255;3;0;9;TSM:INIT
      0;255;3;0;9;TSM:RADIO:OK
      0;255;3;0;9;TSM:GW MODE
      0;255;3;0;9;TSM:READY
      IP: 192.168.0.87
      0;255;3;0;9;No registration required
      0;255;3;0;9;Init complete, id=0, parent=0, distance=0, registration=1
      IP: 192.168.0.87
      0;255;3;0;9;Attempting MQTT connection...
      IP: 192.168.0.87
      

      So the gateway is never able to connect to the MQTT broker. I have double checked everything and restarted, recomplied and still no luck. Am I missing something obvious, Any help would be very much appreciated

      blaceyB Offline
      blaceyB Offline
      blacey
      Admin
      wrote on last edited by
      #2

      @Matt-Pitts It would be helpful if you post your sketch... and possibly your mosquitto broker config file. .

      1 Reply Last reply
      0
      • Matt PittsM Offline
        Matt PittsM Offline
        Matt Pitts
        wrote on last edited by
        #3

        It was a silly mistake, I have forgotten to uncomment the username and password, its working now :-)

        blaceyB 1 Reply Last reply
        1
        • Matt PittsM Matt Pitts

          It was a silly mistake, I have forgotten to uncomment the username and password, its working now :-)

          blaceyB Offline
          blaceyB Offline
          blacey
          Admin
          wrote on last edited by
          #4

          @Matt-Pitts Excellent! :+1:

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          13

          Online

          11.7k

          Users

          11.2k

          Topics

          113.0k

          Posts


          Copyright 2019 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