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. RPI Gateway MQTT - Attempting MQTT connection...Connected [Loop]

RPI Gateway MQTT - Attempting MQTT connection...Connected [Loop]

Scheduled Pinned Locked Moved Troubleshooting
4 Posts 2 Posters 1.2k Views 3 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.
  • Luiz Augusto LagoL Offline
    Luiz Augusto LagoL Offline
    Luiz Augusto Lago
    wrote on last edited by
    #1

    Hi All,
    Has anyone ever had this problem? When I start the service, he it stay in loop waiting for connection with itself, this is normal?

    My configure:

    ./configure --my-gateway=mqtt --my-controller-ip-address=192.168.1.157 --my-mqtt-publish-topic-prefix=mysensors-out --my-mqtt-subscribe-topic-prefix=mysensors-in --my-mqtt-client-id=mygateway1
    

    Debug:

    pi@octopi:~/MySensors $ sudo mysgw -d
    mysgw: Starting gateway...
    mysgw: Protocol version - 2.1.1
    mysgw: MCO:BGN:INIT GW,CP=RNNG---,VER=2.1.1
    mysgw: TSF:LRT:OK
    mysgw: TSM:INIT
    mysgw: TSF:WUR:MS=0
    mysgw: TSM:INIT:TSP OK
    mysgw: TSM:INIT:GW MODE
    mysgw: TSM:READY:ID=0,PAR=0,DIS=0
    mysgw: MCO:REG:NOT NEEDED
    mysgw: MCO:BGN:STP
    mysgw: MCO:BGN:INIT OK,TSP=1
    mysgw: Attempting MQTT connection...
    mysgw: connected to 192.168.1.157
    mysgw: Attempting MQTT connection...
    mysgw: connected to 192.168.1.157
    mysgw: Attempting MQTT connection...
    mysgw: connected to 192.168.1.157
    mysgw: Attempting MQTT connection...
    mysgw: connected to 192.168.1.157
    mysgw: Attempting MQTT connection...
    mysgw: connected to 192.168.1.157
    mysgw: Attempting MQTT connection...
    mysgw: connected to 192.168.1.157
    mysgw: Attempting MQTT connection...
    
    gohanG 1 Reply Last reply
    0
    • Luiz Augusto LagoL Luiz Augusto Lago

      Hi All,
      Has anyone ever had this problem? When I start the service, he it stay in loop waiting for connection with itself, this is normal?

      My configure:

      ./configure --my-gateway=mqtt --my-controller-ip-address=192.168.1.157 --my-mqtt-publish-topic-prefix=mysensors-out --my-mqtt-subscribe-topic-prefix=mysensors-in --my-mqtt-client-id=mygateway1
      

      Debug:

      pi@octopi:~/MySensors $ sudo mysgw -d
      mysgw: Starting gateway...
      mysgw: Protocol version - 2.1.1
      mysgw: MCO:BGN:INIT GW,CP=RNNG---,VER=2.1.1
      mysgw: TSF:LRT:OK
      mysgw: TSM:INIT
      mysgw: TSF:WUR:MS=0
      mysgw: TSM:INIT:TSP OK
      mysgw: TSM:INIT:GW MODE
      mysgw: TSM:READY:ID=0,PAR=0,DIS=0
      mysgw: MCO:REG:NOT NEEDED
      mysgw: MCO:BGN:STP
      mysgw: MCO:BGN:INIT OK,TSP=1
      mysgw: Attempting MQTT connection...
      mysgw: connected to 192.168.1.157
      mysgw: Attempting MQTT connection...
      mysgw: connected to 192.168.1.157
      mysgw: Attempting MQTT connection...
      mysgw: connected to 192.168.1.157
      mysgw: Attempting MQTT connection...
      mysgw: connected to 192.168.1.157
      mysgw: Attempting MQTT connection...
      mysgw: connected to 192.168.1.157
      mysgw: Attempting MQTT connection...
      mysgw: connected to 192.168.1.157
      mysgw: Attempting MQTT connection...
      
      gohanG Offline
      gohanG Offline
      gohan
      Mod
      wrote on last edited by
      #2

      @Luiz-Augusto-Lago
      You need to install mosquitto as mqtt broker (or whatever other mqtt broker you like)

      Luiz Augusto LagoL 1 Reply Last reply
      0
      • gohanG gohan

        @Luiz-Augusto-Lago
        You need to install mosquitto as mqtt broker (or whatever other mqtt broker you like)

        Luiz Augusto LagoL Offline
        Luiz Augusto LagoL Offline
        Luiz Augusto Lago
        wrote on last edited by
        #3

        @gohan Already installed :/

        1 Reply Last reply
        0
        • Luiz Augusto LagoL Offline
          Luiz Augusto LagoL Offline
          Luiz Augusto Lago
          wrote on last edited by Luiz Augusto Lago
          #4

          Done! I need reinstall Mosquitto (I don't know why, but works)...anyway... thanks for help!!

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


          25

          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