Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

MQTT Two way communication

I am interested in making communications of commands between different MQTT clients and to perform the regarding actions on both end. Is it possible to have two way communication using MQTT? I am working on Raspberry PI.

like image 700
Khan Aaqib Avatar asked Dec 01 '25 15:12

Khan Aaqib


2 Answers

Yes its possible by using different publisher and subscriber topic for same client. Also you need some handler on client side to act.

like image 179
Arbaz Alam Avatar answered Dec 04 '25 03:12

Arbaz Alam


Not sure what you mean by two way communication. You have subscribers and publishers in Mqtt. You could have a subscriber sitting out there listening to a particular topic and have it react to certain messages.

The way you would interact with that subscriber is by a publisher. Have it send a message to that subscriber's topic it's listening on.

like image 24
mastash3ff Avatar answered Dec 04 '25 03:12

mastash3ff



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!