You are reading a single comment by @fanoush and its replies. Click here to read the full conversation.
  • you should not do the initialization of services inside NRF.restart(), that's meant for code that runs while bluetooth stack is completely disabled

    https://www.espruino.com/Reference#l_NRF_restart

    callback - [optional] A function to be called while the softdevice is uninitialised. Use with caution - accessing console/bluetooth will almost certainly result in a crash.

    you managed to actually do both things advised not to do :-)

About

Avatar for fanoush @fanoush started