question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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

See original GitHub issue

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.

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
oldnewthingcommented, May 19, 2017

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

0reactions
shikhartandon1993commented, May 29, 2018

BluetoothLE app is not working with BluetoothCacheMode.Uncached,it gives error “Device Unreachable”. But it works with BluetoothCacheMode.Cached . It shows the services and characterstics with BluetoothCacheMode.Cached method but I am not able to see temperature value, it gives error Read Failed. Please help

Thanks

On Thu, May 17, 2018 at 6:40 PM, Shikhar Tandon <shikhartandon1993@gmail.com

wrote:

Hi

Which Bluetooth Code sample should I use to read values from external BLE devices GATT profile? Thanks

On Wed, May 16, 2018 at 12:08 AM, Raymond Chen notifications@github.com wrote:

This is for reporting issues with the BluetoothLE sample in this repo. If you have other questions, you can open a support case with the Developer Support team as noted earlier.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/Microsoft/Windows-universal-samples/issues/655#issuecomment-389395722, or mute the thread https://github.com/notifications/unsubscribe-auth/AYwnBRImtL2U7wyTtAcqVozVoTPNLA0mks5ty7RCgaJpZM4NgqN- .

Read more comments on GitHub >

github_iconTop Results From Across the Web

bluetooth - device.GattServices returns an empty set for BLE ...
To get the GattServices, first check if the device is not null. ... a observable observable collection of blueutooth devices // to bind...
Read more >
Bluetooth GATT Client - UWP applications - Microsoft Learn
This article provides an overview of Bluetooth Generic Attribute Profile (GATT) Client for Universal Windows Platform (UWP) apps, ...
Read more >
[Solved]-Why is BluetoothLEDevice.GattServices Empty-C#
For some reason in Windows Universal Apps you can only list the Gatt Services for paired devices despite one of the advantages of...
Read more >
LabVIEW Bluetooth Low Energy Driver development using ...
This example demonstrate on how to use the windows 10 BLE native library to communicate with BLE devices (Smart watch, bulb or any...
Read more >
Bluetooth Framework and Bluetooth Low Energy GATT
Your application must not destroy the Bluetooth Radio Object returned by ... On Windows 10 1703 and above you do not need to...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found