• 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.

About

Avatar for Gordon @Gordon started