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

BME280 | bme280 stops after the first reading #3

Closed
floriandusch opened this issue Nov 11, 2020 · 4 comments
Closed

BME280 | bme280 stops after the first reading #3

floriandusch opened this issue Nov 11, 2020 · 4 comments
Assignees
Labels
bug Something isn't working

Comments

@floriandusch
Copy link

Hi @kmetz,
thanks a lot for the great instructions. Everything works beautifully over here.
The only small issue i have is, that bme280isConnected changes to false after the first reading of the BME280 sensor.
I can't seem to solve it... any pointers?

Thanks much in advance!

@kmetz
Copy link
Owner

kmetz commented Nov 12, 2020

Thanks! I will look into this ASAP.

@kmetz kmetz self-assigned this Nov 12, 2020
@kmetz
Copy link
Owner

kmetz commented Nov 16, 2020

Ok, with the much appreciated help and feedback of @htor-j I was able to fix this, BME280 has to run in MODE_NORMAL instead of MODE_FORCED, the latter requires to re-set forced mode before each reading (it goes into sleep mode afterwards). Normal mode will update readings internally periodically and is also recommended when using filters (see datasheet).

@kmetz kmetz changed the title BME280 | bme280isConnected turns false after the first reading BME280 | bme280 stops after the first reading Nov 16, 2020
@kmetz kmetz added the bug Something isn't working label Nov 16, 2020
@kmetz
Copy link
Owner

kmetz commented Nov 16, 2020

Please use 71cc121 / v1.2.2 +.

@kmetz kmetz closed this as completed Nov 16, 2020
@floriandusch
Copy link
Author

It's working now. Thanks for the fix, @kmetz!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants