-
Notifications
You must be signed in to change notification settings - Fork 4
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
ZH03B error reading stream #4
Comments
How can I help you without knowing anything about trouble you facing? Please, describe.
|
Is that up to me (means that I can comment the code for mode that i don't need)? |
Right, the example is comprehensive includes/tests all the features of the sensor. You may simplify it by removing almost everything: sleep() methods as well as switching to other mode, i.e. you loop may look like:
Right, select the operation mode you would like to use to communicate with your sensor: UI or QA (described in details at the home page). I cannot judge what is better in your particular case. It depends on your application and requirements. |
In case you still have issues reading the stream, try to clean RX buffer by the following function:
Try reading every second (it is reading every 5 seconds in the example), if errors, clean RX after every sensor read. |
I have trouble about reading the stream by ZH03B. Could please help me?
The text was updated successfully, but these errors were encountered: