thomasnordquist / MQTT-Explorer

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

Feat/use tahu for sparkplug decoding #794

Closed bj00rn closed 1 month ago

bj00rn commented 1 month ago

Use tahu https://github.com/eclipse/tahu for sparkplug

Based on #793

Changes

@thomasnordquist thoughts on this?, Why roll our own decoding, but maybe you have been down this road before?

thomasnordquist commented 1 month ago

I'll try to merge this work with https://github.com/thomasnordquist/MQTT-Explorer/pull/493, and move the decoding in the fronted. This would allow the user to select the decoding method, a default should be selected based on the topic path or the first bytes of the data.

thomasnordquist commented 1 month ago

This should make it much easier to decode different data types in the future.

bj00rn commented 1 month ago

I'll try to merge this work with #493, and move the decoding in the fronted. This would allow the user to select the decoding method, a default should be selected based on the topic path or the first bytes of the data.

Sounds good. An "Auto detect" mode for decoding with the possibility for manual override would be awesome. Checkout file-type https://www.npmjs.com/package/file-type package, it has detection of binary payloads. A possibility to download binary payloads would be awesome too!

bj00rn commented 1 month ago

@thomasnordquist pushed commits with sparkplug client for demoVideo