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



  • 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...
    

  • Mod

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



  • @gohan Already installed :/



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


Log in to reply
 

Looks like your connection to MySensors Forum was lost, please wait while we try to reconnect.