You are reading a single comment by @pk910 and its replies. Click here to read the full conversation.
  • You don't have to do anything at all. Unlike the other Espruino boards it's always sleeping as much as it can.

    NRF.sleep() totally turns off bluetooth, which you probably don't want :)

    Only real guidance is make sure you don't keep pins set to use the hardware UART or PWM, as they use the full speed clock and so force it to stay on when active.

  • Hi Gordon,

    NRF.sleep() totally turns off bluetooth, which you probably don't want :)

    This is exactly what i've tried to do to save some battery capacity.
    Unfortunately the Puck doesn't show up again after NFR.wake()
    Do I have to do anything else after enabling bluetooth again?
    Do I have to setup advertisements using NRF.setServices / NRF.setAdvertising?

    Greets pk910

    Edit:

    NRF.setServices({},{uart:true});
    

    just after NRF.wake() fixed it :)

About

Avatar for pk910 @pk910 started