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.6k 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.
  • M Offline
    M 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

    B 1 Reply Last reply
    0
    • M 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

      B Offline
      B 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
      • M Offline
        M 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 :-)

        B 1 Reply Last reply
        1
        • M Matt Pitts

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

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

          @Matt-Pitts Excellent! :+1:

          1 Reply Last reply
          0

          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


          13

          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