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

MQTT Single line transmit #2652

Closed
sebastianheyn opened this issue Oct 13, 2023 · 1 comment
Closed

MQTT Single line transmit #2652

sebastianheyn opened this issue Oct 13, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@sebastianheyn
Copy link

The Feature

on my previous version (10.xx??) the mqtt output would send single line json strings. All other smart home devices also send their data like that. Processing of the mqtt on the server is done line by line.

If ai on the edge sends data like this
watermeter/main/json {
"value": "197915",
"raw": "197915",
"pre": "197915",
"error": "no error",
"rate": "0.000000",
"timestamp": "2023-10-13T07:13:18+0200"
}

the server only sees


watermeter/main/json {

it would be great if you could add an option to send the data like this

watermeter/main/json { "value": "197915", "raw": "197915", "pre": "197915", "error": "no error", "rate": "0.000000", "timestamp": "2023-10-13T07:13:18+0200" }

in a single line.

Thanks anyhow for the great project

@sebastianheyn sebastianheyn added the enhancement New feature or request label Oct 13, 2023
@caco3
Copy link
Collaborator

caco3 commented Oct 14, 2023

The correct way is to make sure the server is able to handle the JSON spe.
Newlines are allowed and help for debugging!

@caco3 caco3 closed this as completed Oct 14, 2023
@caco3 caco3 closed this as not planned Won't fix, can't repro, duplicate, stale Oct 14, 2023
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

2 participants