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

What is the max Measure Interval value? #35

Closed
nadnerb33 opened this issue Jan 30, 2021 · 4 comments
Closed

What is the max Measure Interval value? #35

nadnerb33 opened this issue Jan 30, 2021 · 4 comments

Comments

@nadnerb33
Copy link

nadnerb33 commented Jan 30, 2021

Ideally I only want a reading every 10 minutes to save battery drain from frequent measurements, but also to stop my DB and graphs getting clogged with data.

So I need a measure interval of 240 x 2500ms (default adv interval) = 10 mins

It seems you can only enter 2 digits, so I tried 99 and saved config, but it always resets to 10x
I've also tried 20x and 30x, but it resets.

Am I doing something wrong? I set the value and then click "Send Config" and the log output says it was successful.

edit: I'm using the OTA flasher and the v1.9 fw

edit2: ok, I see in app.c that values over 10 get set to 10.
Why is that, is there a limit elsewhere?
I tried to increase advertising interval, but I lost connection, so the actual maximum is 25~30 seconds (or 100 seconds if I increase adv int and accept I won't be able to connect again)

@pvvx
Copy link
Owner

pvvx commented Jan 30, 2021

Ideally I only want a reading every 10 minutes to save battery drain from frequent measurements

Increasing the measurement interval will not save energy. Percentage shares.

#23 (comment)

@pvvx
Copy link
Owner

pvvx commented Jan 30, 2021

but also to stop my DB and graphs getting clogged with data.

Turn on the averaging of results in your database and save every 10 minutes. This will give precision accuracy.

@pvvx
Copy link
Owner

pvvx commented Jan 30, 2021

For intervals longer than N minute, a different program is required. Incompatible with current firmware.
The device sleeps for N minutes and is activated, measures and issues several beacons. And a new cycle.

@nadnerb33
Copy link
Author

thanks, I'll set it to the max and then filter on the DB side.

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