Access Denied When Executing "GetCharacteristicsForUuidAsync()" for Write Characteristic #961
-
Hey guyz, maybe someone can help me out because I have a really tricky situation with Bluetooth LE using Shiny on Windows 10. I am using an adapted version of the UWP implementation from Mr. Ritchie. Why that? The problem occurrs within Uwp/GattService.cs at Has anybody a clue why is that? Maybe you @aritchie ? I really need help here because I am kinda lost right now... I also tried to set P.S. I use Windows 10 SDK Kit Build 20348 and like stated above it is a .NET Framework 4.6.2 project and all our assemblies are strong named because of using GAC. If I am missing anything don't hesitate to contact me. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Hi Mathias Please respect the guidelines of not tagging maintainers in these posts (#600). Please note that I'm only supporting UWP via sponsors at this point since UWP is on it's way out. I can tell you that I have no idea what to tell you here as it is well outside of I would be willing to support anyhow. I don't have this issue on pure UWP, so it could be something with the way this has been bridged in... I have no idea. |
Beta Was this translation helpful? Give feedback.
-
For anyone who stumbles over the same stupid issue...Here's the solution: On Windows, using .NET Framework 4.6.1+ and the WinRT libraries inside a Non-UWP application, you can only call ONCE for getting the characteristics, no matter if you call for all at once via Any subsequent calls will fail with That did the trick! Anyways, this is so stupid...It wasted a lot of my time now! PS: I will call out to you, if I stumble over another tricky situation, just to let you guyz know. |
Beta Was this translation helpful? Give feedback.
For anyone who stumbles over the same stupid issue...Here's the solution:
On Windows, using .NET Framework 4.6.1+ and the WinRT libraries inside a Non-UWP application, you can only call ONCE for getting the characteristics, no matter if you call for all at once via
gattDeviceService.GetCharacteristicsAsync(BluetoothCacheMode.Uncached)
or for a specific one viagattDeviceService.GetCharacteristicsForUuidAsync(uuid, BluetoothCacheMode.Cached)
.Any subsequent calls will fail with
GattCommunicationStatus.AccessDenied
...So my solution now is to retrieve all characteristics at once and filter them locally.
That did the trick! Anyways, this is so stupid...It wasted a lot of my time now!
As it s…