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

Handle 0x00 char. Catch any error in event handler loop #133

Merged
merged 2 commits into from
Dec 4, 2024

Conversation

MarkusSchneider
Copy link
Contributor

@MarkusSchneider MarkusSchneider commented Sep 27, 2023

I had problems with a sensor sending 0x00 Char. I've handled the 0x00 char by replacing them with \uFFFD which is this char:
image.
I've also added a catch for any error in the event handling loop. If an unhandled error occurs in this loop the whole integration stops working.

@MarkusSchneider MarkusSchneider changed the title Handle 0x00 chars. Catch any error in event handler loop Handle 0x00 char. Catch any error in event handler loop Sep 27, 2023
@GioMez
Copy link

GioMez commented Apr 11, 2024

Had the same problem. That fixed it. Thank you!

@freol35241
Copy link
Owner

Thanks for your contribution. Will merge this and address linting issues separately. Credit where credit is due.

@freol35241 freol35241 merged commit 5413d8f into freol35241:master Dec 4, 2024
2 of 3 checks passed
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.

3 participants