This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

MQTT Broker and Client testing
#1
Dear all,
I am testing MQTT apps. I have a MQTT client which send a Json topic to LM Broker.

After that I set LM MQTT client app in order to read data sent received by. Topic name I use is the same I set on the MQTT client.

LM client app is correctly link to broker but how can I understand if data are received from broker? 

I follow the script but there's a way, before setting the scripts, if data are correctly reveived by broker? 

Thanks.

BR
Reply
#2
You can use MQTT explorer on PC to see every topic.
https://mqtt-explorer.com/
------------------------------
Ctrl+F5
Reply
#3
What do you mean by correctly received? Broker does not validate the data in any way. It simply passes published data to all subscribers.
Reply
#4
You can also put log(payload) in the script in section, that way the received payload on the topic will be logged in the controller.
Reply
#5
(05.03.2025, 17:08)admin Wrote: What do you mean by correctly received? Broker does not validate the data in any way. It simply passes published data to all subscribers.

Hi admin, yes I know that broker simply passes data but I though there was a way to log the publishing data sent by the client.

In any case with MQTT Explorer I was able to read the topics and payloads of the client so now I understand how it works. 

Thanks a lot.
Reply


Forum Jump: