You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Using the Windows.Devices.Bluetooth apis to write to a GattCharacteristic of a Bluetooth LE Service, using the Windows.Devices.Bluetooth.GenericAttributeProfile.GattCharacteristic.WriteValueAsync API. Code works in .NET Framework 4.7.2, same code fails in .NET 5 with NullReferenceException thrown
To Reproduce
Create a .NET 5 Console app
Set TargetFramework in the csproj file to net5-windows10.0.19041.0
Modify Guids in code to match your Bluetooth LE device service and Gatt characteristic
Run - observe exception
Repeat, but with .NET Framework 4.7.2 console app, adding Windows SDK reference using the Microsoft.Windows.SDK.Contracts NuGet package. Observe that that works.
Expected behavior
.Net 5 app should run to completion successfully
Version Info
Visual Studio 2019, .Net 5, net5-windows10.0.19041.0
Additional context
The text was updated successfully, but these errors were encountered:
Describe the bug
Using the Windows.Devices.Bluetooth apis to write to a GattCharacteristic of a Bluetooth LE Service, using the Windows.Devices.Bluetooth.GenericAttributeProfile.GattCharacteristic.WriteValueAsync API. Code works in .NET Framework 4.7.2, same code fails in .NET 5 with NullReferenceException thrown
To Reproduce
Program.zip
Expected behavior
.Net 5 app should run to completion successfully
Version Info
Visual Studio 2019, .Net 5, net5-windows10.0.19041.0
Additional context
The text was updated successfully, but these errors were encountered: