Skip to content
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

Option to disable sparkplug autodecode. #808

Closed
plattrap opened this issue Jun 3, 2024 · 1 comment
Closed

Option to disable sparkplug autodecode. #808

plattrap opened this issue Jun 3, 2024 · 1 comment

Comments

@plattrap
Copy link

plattrap commented Jun 3, 2024

The sparkplug decoder has decided my JSON payload needs to be decoded and has hidden the actual payload data.

Real payload

{
    "timestamp": "2024-06-03T10:58:51.882Z",
    "mac": "d97de462fc85",
    "stats_crc": "4b48",
    "anchor_stats": "1, 1, 1, 2, 1, 0, 0, 0",
    "history_stats": "8, 7, 9, 6, 6, 9, 5, 6"
}

Displayed payload ("Decoded SparkplugB")

{
    "uuid": ", 0\", \"history_stats\": \"8, 7, 9, 6, 6, 9, 5, 6\"}"
}
@bj00rn bj00rn added the enhancement New feature or request label Jun 3, 2024
@bj00rn
Copy link
Collaborator

bj00rn commented Jun 3, 2024

Are you using the latest beta? It should now prevent falsely identifying payloads as sparkplug. It should now only try to decode topics starting with/spBv1.0

Edit: I was mistaken, the above logic is yet to be released. Latest 0.4.0-beta6 has sparkplug decoding disabled for now

@bj00rn bj00rn removed the enhancement New feature or request label Jun 3, 2024
@bj00rn bj00rn closed this as completed Jun 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants