Hi - it's a shame about your power consumption issues. And you're on a pretty recent firmware, because you're using setSecurity? You could try upgrading to the latest on 'cutting edge' release again as I know there have been a few battery power tweaks recently, but nothing too major.
Realistically the 15 min interval shouldn't really affect your power consumption noticeably. Just to be sure:
You're expecting to be connected to your phone around half the time
The other half it'll be disconnected?
For when you're connected you could try NRF.setConnectionInterval(200) (http://www.espruino.com/Reference#l_NRF_setConnectionInterval) - the auto power saving mode should have done that for you if nothing was happening, but I guess it doesn't hurt to be sure :)
Only thing to watch out for is that'll then make any interactions with the Puck quite slow, so you want to call it after you've finished the upload (maybe in a setTimeout).
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
Hi - it's a shame about your power consumption issues. And you're on a pretty recent firmware, because you're using setSecurity? You could try upgrading to the latest on 'cutting edge' release again as I know there have been a few battery power tweaks recently, but nothing too major.
Realistically the 15 min interval shouldn't really affect your power consumption noticeably. Just to be sure:
For when you're connected you could try
NRF.setConnectionInterval(200)
(http://www.espruino.com/Reference#l_NRF_setConnectionInterval) - the auto power saving mode should have done that for you if nothing was happening, but I guess it doesn't hurt to be sure :)Only thing to watch out for is that'll then make any interactions with the Puck quite slow, so you want to call it after you've finished the upload (maybe in a setTimeout).