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

Use ArduinoJson for serializing main data payload #2

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

amotl
Copy link
Member

@amotl amotl commented Feb 4, 2023

The original code said:

ArduinoJson does not allow to set number of decimals for floating point data - neither does MQTT Dashboard...
Therefore the JSON string is created manually.

This is a humble attempt to make it work using ArduinoJson's serialized() within the publishWeatherdata() function. It has not been tested, so it may well not work as intended.

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

Successfully merging this pull request may close these issues.

1 participant