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. MQTT GW issues with sending MQTT msg

MQTT GW issues with sending MQTT msg

Scheduled Pinned Locked Moved Troubleshooting
5 Posts 3 Posters 759 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.
  • G Offline
    G Offline
    Gad Ofir
    wrote on last edited by
    #1

    i have set up a MQTT GW on ESP12 for the first time...
    in the serial monitor, all looks cool, right?

    connected with Ofir-grid, channel 11
    dhcp client start...
    1830 GWT:TPC:CONNECTING...
    ip:192.168.1.31,mask:255.255.255.0,gw:192.168.1.1
    4998 GWT:TPC:CONNECTING...
    5026 GWT:TPC:IP=192.168.1.31
    5056 MCO:BGN:STP
    5074 MCO:BGN:INIT OK,TSP=1
    5103 GWT:TPC:IP=192.168.1.31
    5133 GWT:RMQ:MQTT RECONNECT
    pm open,type:2 0
    20474 GWT:TPC:IP=192.168.1.31
    20505 GWT:RMQ:MQTT RECONNECT
    35841 GWT:TPC:IP=192.168.1.31
    35872 GWT:RMQ:MQTT RECONNECT
    35921 GWT:RMQ:MQTT CONNECTED
    35951 GWT:TPS:TOPIC=mygateway1-out/0/255/0/0/18,MSG SENT
    
    1. i am still not testing any sensors
    2. i have RF24 connected but still was not able to test it has i have no sensors yet
    3. i just want MQTT working for now

    i have tested with all MQTT software i can find ,still not able to get MQTT msg from this topic
    mygateway1-out or any of the related above, how can i troubleshot MQTT?

    1 Reply Last reply
    0
    • bgunnarbB Offline
      bgunnarbB Offline
      bgunnarb
      wrote on last edited by
      #2

      Did you try MQTT.fx? I use that SW (free of charge) a lot when troubleshooting MQTT.

      Start by checking that MQTT.fx really does connect with the MQTT broker. Then subscribe first to the topic #, which means everything. Then narrow down by subscribing to mygateway1-out/# and so on.

      The latest version of MQTT.fx also has a Topics Collector that shows all topics on the broker as they arrive.

      I have never been so busy since I retired!

      1 Reply Last reply
      2
      • G Offline
        G Offline
        Gad Ofir
        wrote on last edited by
        #3

        @bgunnarb said in MQTT GW issues with sending MQTT msg:

        MQTT.fx also

        Hi yes i have tried # , i can see all my MQTT status but not this one...
        doing this with node red ... same as MQTT.fx, also tried MQTT lens seems that there is nothing sending to the broker

        but as i can see in the serial output, it says connected, anyway? i can up the debug level to the MQTT connection?

        strange thing is that the code does not say what broker it is connected to

        35921 GWT:RMQ:MQTT CONNECTED
        35951 GWT:TPS:TOPIC=mygateway1-out/0/255/0/0/18,MSG SENT```
        mfalkviddM 1 Reply Last reply
        0
        • G Gad Ofir

          @bgunnarb said in MQTT GW issues with sending MQTT msg:

          MQTT.fx also

          Hi yes i have tried # , i can see all my MQTT status but not this one...
          doing this with node red ... same as MQTT.fx, also tried MQTT lens seems that there is nothing sending to the broker

          but as i can see in the serial output, it says connected, anyway? i can up the debug level to the MQTT connection?

          strange thing is that the code does not say what broker it is connected to

          35921 GWT:RMQ:MQTT CONNECTED
          35951 GWT:TPS:TOPIC=mygateway1-out/0/255/0/0/18,MSG SENT```
          mfalkviddM Offline
          mfalkviddM Offline
          mfalkvidd
          Mod
          wrote on last edited by mfalkvidd
          #4

          @gad-ofir unless MY_CONTROLLER_IP_ADDRESS has been defined, the mqtt gateway will be listening for incoming mqtt connections (i e you can configure nodered to connect to the gateway)

          1 Reply Last reply
          0
          • G Offline
            G Offline
            Gad Ofir
            wrote on last edited by
            #5

            Hi, Solved!

            for some reason, # did not give me any result...

            this is the topic = mygateway1-out/0/255/0/0/18

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


            20

            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