Example #1
0
        public DeviceInformation PickSingleDevice()
        {
            var devicePicker = new DevicePicker();
            var deviceInfo   = devicePicker.PickSingleDevice();

            return(deviceInfo);
        }
Example #2
0
        private DeviceInformation PickDevice()
        {
            var picker     = new DevicePicker();
            var deviceInfo = picker.PickSingleDevice();

            Debug.Log(deviceInfo.Id);
            return(deviceInfo);
        }
        /// <summary>
        /// opens device picker and allows user to pick a single device from the list
        ///
        /// [troubleshooting]:
        /// - if no devices show up on the device list, try to pair the PC with desired device inside Windows and try again
        /// </summary>
        private static DeviceInformation PickDevice()
        {
            /* open device picker */
            var picker     = new DevicePicker();
            var deviceInfo = picker.PickSingleDevice();

            return(deviceInfo);
        }
Example #4
0
    /// <summary>
    /// 장비 정보 갖고오기
    /// </summary>
    private static DeviceInformation PickDevice()
    {
        //BluetoothAdapter a;
        //BluetoothClassOfDevice b;


        var picker = new DevicePicker();


        var deviceInfo = picker.PickSingleDevice(); //picker.PickSingleDevice();

        //b = a.ClassOfDevice;
        return(deviceInfo);
    }