LAK132 icon

Untitled

LAK132 | PRO | 06/02/16 04:09:33 AM UTC | 0 ⭐ | 504 👁️ | Never ⏰ | []
C# |

950 B

|

None

|

0 👍

/

0 👎

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

Comments