Ahh, well setServices({...},{advertise: will set the services in the scan response packet, and setScanResponse will overwrite them. There's a very small note about it here: http://www.espruino.com/Reference#l_NRF_setScanResponse
Basically while you can advertise services outside the scan response, it's not really worth it with 128 bit UUIDs like the UART because there's no room for anything else.
The IDE will try and show you anything with the UART service or that starts with 'Espruino', 'Puck.js', and some others.
However specifying uart:false should totally disable the UART, which isn't what you want. As far as I know there's no way to disable the advertising of UART but not the UART except by using NRF.setScanResponse with your own manually constructed advertising packet after having called setServices.
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.
Ahh, well
setServices({...},{advertise:
will set the services in the scan response packet, andsetScanResponse
will overwrite them. There's a very small note about it here: http://www.espruino.com/Reference#l_NRF_setScanResponseBasically while you can advertise services outside the scan response, it's not really worth it with 128 bit UUIDs like the UART because there's no room for anything else.
The IDE will try and show you anything with the UART service or that starts with 'Espruino', 'Puck.js', and some others.
However specifying
uart:false
should totally disable the UART, which isn't what you want. As far as I know there's no way to disable the advertising of UART but not the UART except by usingNRF.setScanResponse
with your own manually constructed advertising packet after having calledsetServices
.