Ejemplo n.º 1
0
 private static byte[] GetMac(DeviceInformation e)
 {
     return(e.Id.Substring(e.Id.IndexOf("-") + 1).Split(':').Select(x => Converts.HexStringToByteArray(x)[0]).ToArray());
 }
Ejemplo n.º 2
0
 private static byte[] GetMac(BluetoothLEDevice device)
 {
     return(device.DeviceId.Substring(device.DeviceId.IndexOf("-") + 1).Split(':').Select(x => Converts.HexStringToByteArray(x)[0]).ToArray());
 }