Ejemplo n.º 1
0
        private static string GetDeviceSelectorFromClassOfDeviceImpl(BluetoothClassOfDevice classOfDevice)
        {
#if !WINDOWS_PHONE_81 && !WINDOWS_PHONE_APP
            return(Windows.Devices.Bluetooth.BluetoothDevice.GetDeviceSelectorFromClassOfDevice(classOfDevice));
#else
            return(string.Empty);
#endif
        }
Ejemplo n.º 2
0
 /// <summary>
 /// Creates an Advanced Query Syntax (AQS) filter string from a BluetoothClassOfDevice object.
 /// The AQS string is passed into the CreateWatcher method to return a collection of DeviceInformation objects.
 /// </summary>
 /// <param name="classOfDevice">The class of device used for constructing the AQS string.</param>
 /// <returns>An AQS string that can be passed as a parameter to the CreateWatcher method.</returns>
 public static string GetDeviceSelectorFromClassOfDevice(BluetoothClassOfDevice classOfDevice)
 {
     return(GetDeviceSelectorFromClassOfDeviceImpl(classOfDevice));
 }
Ejemplo n.º 3
0
 private static string GetDeviceSelectorFromClassOfDeviceImpl(BluetoothClassOfDevice classOfDevice)
 {
     return("bluetoothClassOfDevice:" + classOfDevice.RawValue.ToString("X12"));
 }
 private BluetoothClassOfDevice GetClassOfDevice()
 {
     return(BluetoothClassOfDevice.FromRawValue(0));
 }
 private static string GetDeviceSelectorFromClassOfDeviceImpl(BluetoothClassOfDevice classOfDevice)
 {
     return(string.Empty);
 }