How to retrieve the status of my mqtt

I am only offering suggestions.

As the build seems to be mostly remote machines, it makes it very hard to pin down the failure to any ONE THING.

Having LWT messages helps to eliminate what is going on.
Or sorry better: Helps if the link IS going up/down like..... (well).....

Because until the bigger picture is clearly seen, we are merely chasing shadows.

Personally I would use/have a LOCAL MQTT broker.
It reduces the points of failure. (IMO)

Though I agree: BIRTH messages would also be handy for the same reason.

Edit: - corrected image and flow.

This flow can be used to verify each of your MQTT messages has been received by the broker.

[{"id":"53632eae3e304959","type":"group","z":"a5af422dfb97bf50","name":"Normal messages. Note messages have related topics","style":{"label":true,"stroke":"#000000","color":"#0070c0","fill":"#ffefbf","fill-opacity":"0.5"},"nodes":["5ad5b1fcf5212980","e2328504e6948cd6","d39968c032fa1d44"],"x":74,"y":299,"w":612,"h":122},{"id":"5ad5b1fcf5212980","type":"inject","z":"a5af422dfb97bf50","g":"53632eae3e304959","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"my/topic/pressure","payload":"1003","payloadType":"num","x":240,"y":340,"wires":[["d39968c032fa1d44","9e0a077fe87ab477"]]},{"id":"e2328504e6948cd6","type":"inject","z":"a5af422dfb97bf50","g":"53632eae3e304959","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"my/topic/temperature","payload":"47","payloadType":"num","x":230,"y":380,"wires":[["d39968c032fa1d44","9e0a077fe87ab477"]]},{"id":"d39968c032fa1d44","type":"mqtt out","z":"a5af422dfb97bf50","g":"53632eae3e304959","name":"","topic":"","qos":"","retain":"","respTopic":"","contentType":"","userProps":"","correl":"","expiry":"","broker":"74867a44e8ce40e2","x":610,"y":380,"wires":[]},{"id":"74867a44e8ce40e2","type":"mqtt-broker","name":"hivemq","broker":"5865c99134724375beb72eb98129da6c.s1.eu.hivemq.cloud","port":"8883","tls":"","clientid":"","autoConnect":true,"usetls":true,"protocolVersion":"4","keepalive":"60","cleansession":true,"autoUnsubscribe":true,"birthTopic":"","birthQos":"0","birthRetain":"false","birthPayload":"","birthMsg":{},"closeTopic":"","closeQos":"0","closeRetain":"false","closePayload":"","closeMsg":{},"willTopic":"","willQos":"0","willRetain":"false","willPayload":"","willMsg":{},"userProps":"","sessionExpiry":""},{"id":"ac8c4efcf8ee92f4","type":"group","z":"a5af422dfb97bf50","name":"Subscribe to the same topics (using wildcard). Alert if a message does not come back within 5 sec","style":{"label":true,"stroke":"#000000","fill":"#ffefbf","fill-opacity":"0.51","color":"#0070c0"},"nodes":["482c0f65473b7f72","9b7db3d3d82b4e76","9e0a077fe87ab477","91c47eed1c982486"],"x":74,"y":439,"w":672,"h":82},{"id":"482c0f65473b7f72","type":"mqtt in","z":"a5af422dfb97bf50","g":"ac8c4efcf8ee92f4","name":"","topic":"my/topic/#","qos":"2","datatype":"auto-detect","broker":"74867a44e8ce40e2","nl":false,"rap":true,"rh":0,"inputs":0,"x":160,"y":480,"wires":[["9b7db3d3d82b4e76"]]},{"id":"9b7db3d3d82b4e76","type":"change","z":"a5af422dfb97bf50","g":"ac8c4efcf8ee92f4","name":"","rules":[{"t":"set","p":"reset","pt":"msg","to":"","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":320,"y":480,"wires":[["9e0a077fe87ab477"]]},{"id":"9e0a077fe87ab477","type":"trigger","z":"a5af422dfb97bf50","g":"ac8c4efcf8ee92f4","name":"","op1":"","op2":"ALARM!","op1type":"nul","op2type":"str","duration":"5","extend":false,"overrideDelay":false,"units":"s","reset":"","bytopic":"topic","topic":"topic","outputs":1,"x":520,"y":480,"wires":[["91c47eed1c982486"]]},{"id":"91c47eed1c982486","type":"debug","z":"a5af422dfb97bf50","g":"ac8c4efcf8ee92f4","name":"Alarm!","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","statusVal":"","statusType":"auto","x":650,"y":480,"wires":[]}]

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.