Hi Klaus,
NRF.sleep and NRF.wake should work - however I'm not sure there is much you can do to force a reconnect if your PC isn't interested.
NRF.sleep
NRF.wake
What about NRF.setLowPowerConnection? That keeps the connection but will use drastically less power: http://www.espruino.com/Reference#l_NRF_setLowPowerConnection
NRF.setLowPowerConnection
Basically it just changes the polling interval from ~20ms to ~500ms - so keypresses will register more slowly but otherwise it's the same.
@Gordon started
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 Klaus,
NRF.sleep
andNRF.wake
should work - however I'm not sure there is much you can do to force a reconnect if your PC isn't interested.What about
NRF.setLowPowerConnection
? That keeps the connection but will use drastically less power: http://www.espruino.com/Reference#l_NRF_setLowPowerConnectionBasically it just changes the polling interval from ~20ms to ~500ms - so keypresses will register more slowly but otherwise it's the same.