LAK132

Untitled

Jun 1st, 2016
507
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.95 KB | None | 0 0
  1. public static async Task<BluetoothLEDevice> DeviceFromDeviceInfo(DeviceInformation x)
  2. {
  3.     try {
  4.          return await BluetoothLEDevice.FromIdAsync(x.Id);// c.ToString());
  5.     }
  6.     catch (Exception e){
  7.         throw e;
  8.     }
  9. }
  10.  
  11. -       e   {"Element not found. (Exception from HRESULT: 0x80070490)"} System.Exception
  12.         Message "Element not found. (Exception from HRESULT: 0x80070490)"   string
  13.         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
  14.  
  15. -       x   {Windows.Devices.Enumeration.DeviceInformation} Windows.Devices.Enumeration.DeviceInformation
  16.         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