MQTTX icon indicating copy to clipboard operation
MQTTX copied to clipboard

[Feature] Support for Different Messages Using Separate Protobuf

Open lbj2012 opened this issue 6 months ago • 1 comments

Hi @Neverbolt 👋

Thank you very much for your suggestions and feedback. We are currently planning improvements in the scripting use, and your suggestions are of great help to us. We plan to implement and optimize the script functionality for topics in the future. At the same time, we apologize for not being able to fully meet your requirements.

If possible, you could consider using MQTTX CLI as an alternative. It also supports protobuf, and you can use multiple commands to use different proto files for different topics. For example:


mqttx sub -t 'testtopic/1' -h broker.emqx.io -Pp ./TestPerson.proto -Pmn Person



mqttx sub -t 'testtopic/2' -h broker.emqx.io -Pp ./Message.proto -Pmn Message

We will continue to strive to enhance the functionality and user experience of MQTTX. Thanks again for your valuable suggestions.

Originally posted by @ysfscream in #1371

I am currently using the 1.12.0 desktop version of MQTTX. However, it still only supports running one global script at a time. This limitation means I can only use one Protobuf object for encoding/decoding simultaneously, and other types of messages will encounter abnormalities.

lbj2012 avatar Aug 20 '25 02:08 lbj2012

We have topics and their respective protobuf messages... I can only specify one message right now in the scripts section. This should selectable per subscription.

alebar42 avatar Oct 28 '25 14:10 alebar42