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

Fix: restore JSON array access for HTTP power meter #967

Merged
merged 1 commit into from
May 7, 2024

Conversation

schlimmchen
Copy link
Member

this implements accessing array members in an ArduinoJSON object following the FirebaseJson syntax. the FirebaseJson lib was previously removed to save flash memory, and logic was implemented to find a JSON node using the FirebaseJson path syntax, restoring the functionality. however, array access was not implemented.

this change also addresses leading and trailing and double forward slashes in the path expression.

moreover, much more expressive error messages are now generated in case the path could not be resolved.

Closes #966.

this implements accessing array members in an ArduinoJSON object
following the FirebaseJson syntax. the FirebaseJson lib was previously
removed to save flash memory, and logic was implemented to find a JSON
node using the FirebaseJson path syntax, restoring the functionality.
however, array access was not implemented.

this change also addresses leading and trailing and double forward
slashes in the path expression.

moreover, much more expressive error messages are now generated in case
the path could not be resolved.
@schlimmchen schlimmchen merged commit 3ef789c into master May 7, 2024
10 checks passed
@schlimmchen schlimmchen deleted the restore-json-array-access branch May 7, 2024 18:53
@schlimmchen
Copy link
Member Author

Oh boy, this was of course meant to go into the development branch first...

@schlimmchen
Copy link
Member Author

Related: ca3d1da (re-adds example to access JSON array)

Copy link

github-actions bot commented Jun 9, 2024

This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new discussion or issue for related concerns.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 9, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Keine Daten vom Shelly3Em Powermeter mit Tasmota seit Update der FW auf Version 2024.05.06
1 participant