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

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

Conversation

MarkusSchneider
Copy link

@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!

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.

2 participants