-
Notifications
You must be signed in to change notification settings - Fork 426
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Feature] Set a default message format during Subscription #1591
Comments
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. |
Glad to hear that @ysfscream. Thanks a lot for taking this up! |
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.
![image](https://private-user-images.githubusercontent.com/34249137/307761334-806ae169-630e-451b-bcd9-f144fd692681.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTkxOTU5NDEsIm5iZiI6MTcxOTE5NTY0MSwicGF0aCI6Ii8zNDI0OTEzNy8zMDc3NjEzMzQtODA2YWUxNjktNjMwZS00NTFiLWJjZDktZjE0NGZkNjkyNjgxLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA2MjQlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNjI0VDAyMjA0MVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTJjZWI5Y2NiN2U2MGNiYTdjMDJmZDBkZmUzYzdkMWFjNGE5NjE5YWQyNjliZDA4Y2U0M2U1MWFmYTIyN2M3NDkmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.5wKRzGHFhZNxw7145fsl9b7I5iFyigBcVL1RiwM4hOs)
For example, an optional dropdown for format here:
Alternatives
The alternative is manually setting the format on starting MQTTX here:
![image](https://private-user-images.githubusercontent.com/34249137/307760749-ccdfaa96-068d-44e3-b4fc-ef5a63ab5ecf.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTkxOTU5NDEsIm5iZiI6MTcxOTE5NTY0MSwicGF0aCI6Ii8zNDI0OTEzNy8zMDc3NjA3NDktY2NkZmFhOTYtMDY4ZC00NGUzLWI0ZmMtZWY1YTYzYWI1ZWNmLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA2MjQlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNjI0VDAyMjA0MVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTJkNzRlZTE2M2E1YThjZGEzM2U1OTU2MjY3MjI5NDIyMWNhYmU5NjQwYjg2MjljMDYxMDA3ZDU0Y2EzZGU3OTImWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.-wFMBgr8kZzjzFjDEWXtMf6ZbG4sFyRVitrx8CCNEnE)
And If you forget, your message doesn't look pretty and you have to copy-paste and do it yourself.
The text was updated successfully, but these errors were encountered: