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

New Raw MQTT Message parser #362

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

timcowlishaw
Copy link
Contributor

@timcowlishaw timcowlishaw commented Sep 25, 2024

Addressing #326 and errors in sentry arising from weird unicode characters in messages, also quite a nice refactoring, i think,

Uses a treetop parsing expression grammar for our "pseudojson" format, and use it to convert directly to the "non raw" extended json. Have also tidied up the message handler a little bit in general to help with readability, and added more comprehensive tests for raw message parsing.

@timcowlishaw timcowlishaw linked an issue Sep 25, 2024 that may be closed by this pull request
@timcowlishaw timcowlishaw marked this pull request as ready for review October 2, 2024 13:47
@timcowlishaw
Copy link
Contributor Author

Deployed to staging, on branch 2024-10-01

@timcowlishaw
Copy link
Contributor Author

timcowlishaw commented Oct 7, 2024

TODO: ensure that no parser errors are "swallowed" - errors should be reported (but also see #288 - it maybe makes sense to just do this directly)

@timcowlishaw timcowlishaw linked an issue Oct 14, 2024 that may be closed by this pull request
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.

Null value should not be "null" but null? Non-existing sensors in device
1 participant