That's odd - literally just NRF.sleep(); should be enough - and the voltage regulator is low power enough that you can get pretty low even using it. Are you sure that the code is being executed? You could check with the NRF Connect app to see if the MDBT42Q is advertising (it shouldn't be after 'sleep').
You could also try the above. It won't sleep, but should reduce power consumption both when idle and connected
NRF.setAdvertising({}, {interval:500, scannable:false}); // when disconnected
NRF.setConnectionInterval(200); // for when you'r connected
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.
That's odd - literally just
NRF.sleep();
should be enough - and the voltage regulator is low power enough that you can get pretty low even using it. Are you sure that the code is being executed? You could check with theNRF Connect
app to see if the MDBT42Q is advertising (it shouldn't be after 'sleep').You could also try the above. It won't sleep, but should reduce power consumption both when idle and connected