public DeviceInformation PickSingleDevice() { var devicePicker = new DevicePicker(); var deviceInfo = devicePicker.PickSingleDevice(); return(deviceInfo); }
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); }
/// <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); }