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
unfortunately this sucks a new battery empty in no time (<3days). Any ideas how to avoid this? Thanks!