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

Decode Sparkplug Longs to Numbers #712

Open AlexGodbehere opened 1 year ago

AlexGodbehere commented 1 year ago

I've been using this version of the application locally for some time and figured it may be useful upstream. The primary change ensures that Long values are decoded into Numbers when using Sparkplug payloads.

Before:

{
  "timestamp": {
    "low": 55640321,
    "high": 391,
    "unsigned": true
  },
}

After:

{
  "timestamp": 1679387932588
}

Other Changes

bj00rn commented 6 months ago

@AlexGodbehere could you rebase this PR on master please, and give it some testing and ill try to get it merged.

I had to refactor sparkplug.proto into a js const since the file was not included in packaging and broke binaries.

Thanks

bj00rn commented 5 months ago

duplicate of https://github.com/thomasnordquist/MQTT-Explorer/pull/727?