• Using hid for setServices does something special, and does actually advertise a service.

    In the API docs for setServices it also mentions you can do stuff like this:

    NRF.setServices(undefined, {
      hid : new Uint8Array(...), // optional, default is undefined. Enable BLE HID support
      uart : true, // optional, default is true. Enable BLE UART support
      advertise: [ '180D' ] // optional, list of service UUIDs to advertise
    });
    

    So you can specify services to advertise.

    It's all a bit confusing but with BLE you can advertise data (exposed by setAdvertising) as well as advertising services, which you can do with setServices.

About

Avatar for Gordon @Gordon started