Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static async Task<BluetoothLEDevice> DeviceFromDeviceInfo(DeviceInformation x)
- {
- try {
- return await BluetoothLEDevice.FromIdAsync(x.Id);// c.ToString());
- }
- catch (Exception e){
- throw e;
- }
- }
- - e {"Element not found. (Exception from HRESULT: 0x80070490)"} System.Exception
- Message "Element not found. (Exception from HRESULT: 0x80070490)" string
- StackTrace " at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()\r\n at BluetoothLE.UWP.Device.<DeviceFromDeviceInfo>d__2.MoveNext()" string
- - x {Windows.Devices.Enumeration.DeviceInformation} Windows.Devices.Enumeration.DeviceInformation
- Id "\\\\?\\PCI#VEN_8086&DEV_A123&SUBSYS_115A1462&REV_31#3&11583659&1&FC#{d82357a9-5d80-4232-ac01-a58bd3e1900b}" string
Advertisement
Add Comment
Please, Sign In to add comment