That's a strange one - do you have any other code in there that could have been causing problems?
NRF.wake() should really be enough to get it advertising again after sleep turned it off
NRF.wake()
sleep
edit: You'll need to be using a recent firmware though - 1v88 could cause you problems
@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.
That's a strange one - do you have any other code in there that could have been causing problems?
NRF.wake()
should really be enough to get it advertising again aftersleep
turned it offedit: You'll need to be using a recent firmware though - 1v88 could cause you problems