How to ignore a message sent by yourself

asked 2018-03-11 16:32:48 -0500

updated 2018-03-11 22:59:14 -0500

I'm using ignition transport in a specialized simulator I'm writing, and one issue I've run into happens when I have gui elements that are supposed to update when receiving messages, but that the user can also change directly. If you edit the text box, it publishes a message to the server but the gui is also listening to that message in order to listen for updates from outside the simulator, so you get an update setting the textbox to what you just typed and it is annoying and prevents you from typing naturally.

The easiest way to fix this would be to check if the message I've received was sent by the GUI and ignore it? Is this possible in ignition transport/protobuf? Something is wrong with my design but I can't figure out how best to fix it.

edit retag flag offensive close merge delete