Windows-universal-samples: device.GattServices returns an empty set for BLE devices on a Windows universal app

I am using this sample and when an advertisement is received I am calling

device.GattServices() but that always returns an empty list. Why is this happening? I have found no answer no matter where I have looked.

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Comments: 18 (6 by maintainers)

Most upvoted comments

The GetGattServicesAsync method is new for Windows 10 version 15063. (The WindowsBase in the .NETFramework directory is not related to the UWP SDK.)