Electronics > Microcontrollers

mqtt communication

(1/3) > >>

BlogRahul:
I am trying to understand mqtt communication.   I have installed mosquitto mqtt and it's running on widows 10 PC. I have also installed paho mqtt on my window PC.  Python

I understand MQTT broker is a server. It provides socket connections and services. There are MQTT clients. These can publish topics or subscribe to topics or both.

https://mosquitto.org/documentation/ 

How to test mqtt communication on window PC using terminal ?

Codemonkey:
Not sure how you can test it using a terminal, but you could download and run mqtt-spy which is a java application that allows you to connect to a broker and send messages, subscribe to topics, see messages posted by other clients to a topic etc.

BlogRahul:

--- Quote from: Codemonkey on May 31, 2022, 10:04:17 am ---Not sure how you can test it using a terminal, but you could download and run mqtt-spy which is a java application that allows you to connect to a broker and send messages, subscribe to topics, see messages posted by other clients to a topic etc.

--- End quote ---

Can mqtt communication be checked by making same device as broker and client?

I have only windows 10 pc, can i check mqtt communication by making it broker and client without using any other device?

agehall:
Sure it can. Just set up a broker and use clients to connect to it. One computer is more than enough.

Fredderic:
I find this works pretty effectively:


--- Code: ---mosquitto_sub -t '#' -v
--- End code ---

Quite often have that just running in a window so I can see the traffic flying past.

Navigation

[0] Message Index

[#] Next page

There was an error while thanking
Thanking...
Go to full version
Powered by SMFPacks Advanced Attachments Uploader Mod