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

DateTime über MQTT #79

Closed
hvorragend opened this issue Mar 31, 2020 · 6 comments
Closed

DateTime über MQTT #79

hvorragend opened this issue Mar 31, 2020 · 6 comments

Comments

@hvorragend
Copy link

In einigen Parameter (bei mir 6800, 6810, 6820, 6830, etc.) hat meine Therme Datums- und Uhrzeit gespeichert. Über die Weboberfläche wird die Uhrzeit auch angezeigt. Über MQTT wird leider nur das Datum übertragen.

Könnte man bitte über MQTT Datum und Zeit übermitteln?

Danke.

@dukess
Copy link
Contributor

dukess commented Mar 31, 2020

Hi!
Try to add parameter No. 0 in log_parameters array in BSB_lan_config.h

@hvorragend
Copy link
Author

Really? How can an additional parameter 0 change the format of another parameter?

@dukess
Copy link
Contributor

dukess commented Mar 31, 2020

Oops. My mistake.
I look on code. I think this is because the date and time string contains a whitespace.
MQTTClient.publish(MQTTTopic.c_str(), strtok(query(log_parameters[i],log_parameters[i],1)," "));

@fredlcore
Copy link
Owner

Yes, that is the problem. Some users wanted the unit to be stripped from the actual value, so the general approach was to drop everything following the first whitespace. In the case of date and time, this obviously does not work and I'll have to hard-code this into the JSON output.

@fredlcore
Copy link
Owner

New version online, please check with current master branch if date and time are now transmitted correclty via MQTT and report back here.

@hvorragend
Copy link
Author

Again, thank you very much. It works perfectly fine.

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

3 participants