[Feature] Support for Different Messages Using Separate Protobuf
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 MessageWe 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.
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.