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

How to change the standby time? #3

Closed
konanast opened this issue Apr 30, 2016 · 3 comments
Closed

How to change the standby time? #3

konanast opened this issue Apr 30, 2016 · 3 comments

Comments

@konanast
Copy link

How to change the standby time?
I need to take every 250ms one sample.

@finitespace
Copy link
Owner

finitespace commented Apr 30, 2016

Standby time can be changed in the BME280 constructor.

However, standby time is only used in normal mode; in forced mode, which is the default, the measurements are taken at whatever rate you ask for them.

@konanast
Copy link
Author

konanast commented May 1, 2016

Thanks for the reply! everything works ok.
How to change the standby time and/or the mode, within my code not from the library?
Is it possible to set 1 sample/10minutes? I need to save power in one of my nodes.

@finitespace
Copy link
Owner

finitespace commented May 2, 2016

You're welcome.

Yes, when you call the constructor in your code, the standby time is the 5th argument.

For example:

BME280 bme(1, 1, 1, 1, 4);

Would set the standby time to 250ms, set the oversampling rates to one and put the sensor in normal mode.

@konanast konanast closed this as completed May 4, 2016
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

No branches or pull requests

2 participants