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

values in json without quotes #3442

Open
hns666 opened this issue Dec 18, 2024 · 0 comments
Open

values in json without quotes #3442

hns666 opened this issue Dec 18, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@hns666
Copy link

hns666 commented Dec 18, 2024

The Feature

Hello,
i am trying to integrate the watermeter into ClearScada by Schneider Electric. After 2 days i found out the problem. The values in JSON are with quotes and that represent a string for scada. As there is no option for string point (except sparkplug B) i am not able to get values into the scada. When i tried to do manual publishing of json without quotes i was able to get value.
Is it possible to add at least checkbox that i want to have vlaue in string or number format?
It will be really helpful for me.
Example :
actual json look like that
`{
"main":
{
"value": "868.9640",
"raw": "00868.9640",
"pre": "868.9640",
"error": "no error",
"rate": "0.000060",
"timestamp": "2024-12-18T18:27:05+0100"
}

}`

i need to be like that
{ "main": { "value": 868.9640, "raw": "00868.9640", "pre": 868.9640, "error": "no error", "rate": 0.000060, "timestamp": "2024-12-18T18:27:05+0100" } }

I have no knowledge about mqtt. Maybe all i wrote above is wrong.
I just need that at least "value" is reported as numbers. Not a string. To broker.
As broker i am usin mosquitto from eclipse.

@hns666 hns666 added the enhancement New feature or request label Dec 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant