NRF.setServices(undefined, {uart:false}) but this does disable the BLE UART completely so you'll no longer be able to program the device (until a reboot). Not an issue if you're not making it connectable though!
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.
You need
uart:false
in NRF.setServices: https://www.espruino.com/Reference#l_NRF_setServicesNRF.setServices(undefined, {uart:false})
but this does disable the BLE UART completely so you'll no longer be able to program the device (until a reboot). Not an issue if you're not making it connectable though!The UART service is advertised in the scan response packet, so you can also remove it by setting
scannable:false
(which saves power too) or using NRF.setScanResponse: https://www.espruino.com/Reference#l_NRF_setScanResponse