As @fanoush says - don't use NRF.restart. Just call initBLE directly.
NRF.restart
initBLE
NRF.restart is really a very low level function, pretty much nobody should ever need to call in normal use.
@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.
As @fanoush says - don't use
NRF.restart
. Just callinitBLE
directly.NRF.restart
is really a very low level function, pretty much nobody should ever need to call in normal use.