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
Bangle.js: get poll interval #2308
Comments
Yes, that could be a good idea. Does it make sense to just add this to |
I tried this already but don't think its a good idea. What about just |
Good point. We could just add getPollInterval, I guess it's ok. I'm just a bit anxious about adding a whole bunch of extra functions as it makes it harder to find what you're after. It's also basically impossible for me to remove a method after it's been added :) There is http://www.espruino.com/Reference#l_Bangle_dbg which returns debug info. It would make a lot of sense to add it in there I guess |
I agree. I'll prepare a PR with |
brilliant - thanks! |
Hi,
the powerSave option triggers a change in poll interval but there is no way to detect this change except for timing the events triggered by the poll handler. Use case: use "low poll rate" ~= "inactivity" ~= "not worn" to disable certain actions (buzz, HRM, ...) in apps/widgets.
I'm happy to prepare a PR if requested.
The text was updated successfully, but these errors were encountered: