MQTT GW issues with sending MQTT msg



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



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



  • @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```

  • Mod

    @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)



  • Hi, Solved!

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

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


Log in to reply
 

Suggested Topics

  • 3
  • 8
  • 6
  • 2

14
Online

11.4k
Users

11.1k
Topics

112.7k
Posts