Search code examples
mqttpublish-subscribemosquitto

Stop Mosquitto from sending the message to its owner(sender)


At the moment mosquitto send the received message to whoever that is subscribed to the topic, even the sender of the message. Is it possible to stop the mosquitto from sending the message to its owner?


Solution

  • Unfortunately there is no easy straightforward solution to this. However it is possible with Mosquitto broker. I needed to download the source code and change the underlying codes and compile it again. It requires moderate knowledge of C programming. I need to study the code behind the broker and understand how it works. A bit hard and time consuming but possible.