thomasnordquist / MQTT-Explorer

An all-round MQTT client that provides a structured topic overview
https://mqtt-explorer.com
Other
2.99k stars 287 forks source link

feat: support save and load payload from file #801

Closed bj00rn closed 4 months ago

bj00rn commented 4 months ago

Features

Save / Load payload from file

Certificate selection

Publish from file

image

image

Save payload to file

image

thomasnordquist commented 4 months ago

Just noticed, how is saving working. Is the encoding thing still an issue?

bj00rn commented 3 months ago

Just noticed, how is saving working. Is the encoding thing still an issue?

Files are read/written in default utf-8 for now.

I experimented with opening payload from binary file but ran into problems since payload is encoded as string in reducer state from what I gather. To properly support binary payloads I think some refactoring needs to be done to support this.