• I don't know if this is any help? http://www.espruino.com/About+Bluetooth+­LE

    Basically Bluetooth LE is a bit confusing in that 'Services' can be used for Advertising OR as something that holds a characteristic when the device is connected.

    • NRF.setServices({}, {advertise: ['0x181A']}); advertises the service 0x181A - but as I said in my reply at the top, that will likely be in a scan respose packet, NOT ADV_IND
    • NRF.setAdvertising({0x180F:[1]}); advertises service data 0x180F. That'll go in ADV_IND but I believe is actually a different type of data to the first option.
    • NRF.setServices({0x181A: { 0x2A6E: { ... sets services and characteristics, and these are only available when connected.

    The first 2 options only transmit data when you're not connected, and only the second option will use ADV_IND. The first uses scan response packets.

    Hope that's some help!

About

Avatar for Gordon @Gordon started