Discover all Services on BTLE-Device RRS feed

  • Question

  • Hi all!

    I am writing a Windows Store app based on the Bluetooth Generic Attribute Profile on Windows 8.1 and C#.

    I managed to connect to the device and receive values from the Primary Service (using a BTLE-Dongle).

    However, there should be an additional Service running on the device, but I am not able to discover it.

    This works.


    GattDeviceService.GetDeviceSelectorFromShortId(0x180d), //HeartRateMeasurementService.

    newstring[] { "System.Devices.ContainerId"});

    How to discover properties of Secondary Service?

    GattDeviceService.GetDeviceSelectorFromShortId(0x3ba0), //ecgMeasurementService.
    GattDeviceService.GetDeviceSelectorFromShortId(0x180f), //BatteryLevelService.

    Is there only one Primary Service on a Device? Can there be more than one Secondary Service?

    Are there any code samples out there for this Problem?

    Do I have the same Problem as described here?

    "Bluetooth LE Discovery all Primary Services of a known Device's ID C#" asked by Jim Lyon.

    Thanks in advance.

    Thursday, April 10, 2014 4:08 PM


  • Yes, you have the same problem as Jim Lyon, and unfortunately, it's not possible.

    Matt Small - Microsoft Escalation Engineer - Forum Moderator
    If my reply answers your question, please mark this post as answered.

    NOTE: If I ask for code, please provide something that I can drop directly into a project and run (including XAML), or an actual application project. I'm trying to help a lot of people, so I don't have time to figure out weird snippets with undefined objects and unknown namespaces.

    Friday, April 11, 2014 12:55 PM