Only 3 days until a new battery discharged


#1

Hi All,

I wrote a little espruino app that detects a door opening through the acceleration sensor. When it detectes the door motion it advertises this for about 30 secs (otherwise BLE advertising is off). I do this with

Ruuvitag.accel.setPowerMode(‘highres’);

and

Ruuvitag.setAccelOn()

unfortunately this sucks a new battery empty in no time (<3days). Any ideas how to avoid this? Thanks!


#2

Hello,

can you share the full code?