MQTTX icon indicating copy to clipboard operation
MQTTX copied to clipboard

[Feature] Set a default message format during Subscription

Open V4G4X opened this issue 11 months ago • 2 comments

Motivation

I have set the format type to JSON whenever I use MQTTX, which I often forget, and I have to copy-paste my messages somewhere to format them.

Would LOVE for MQTTX to remember what format a device receives messages in and automatically format it.

Detailed design

I understand different devices work with different types, and even a single device often works with different topics that expect different formats.

It would be very helpful if we could configure this at the topic level while subscribing.
For example, an optional dropdown for format here:
image

Alternatives

The alternative is manually setting the format on starting MQTTX here: image And If you forget, your message doesn't look pretty and you have to copy-paste and do it yourself.

V4G4X avatar Feb 26 '24 11:02 V4G4X

Thank you for sharing your motivation and the detailed design idea for enhancing MQTTX.

Implementing different formats for encoding/decoding messages for various topics within a single device presents significant design challenges. We're carefully considering this functionality and hope to find an innovative solution to accommodate such versatility without compromising the software's performance or user experience.

Thank you once again for your feedback. It's insights like yours that help us improve and evolve MQTTX better to meet the needs of our diverse user base.

ysfscream avatar Feb 27 '24 06:02 ysfscream

Glad to hear that @ysfscream. Thanks a lot for taking this up!

V4G4X avatar Feb 27 '24 17:02 V4G4X