windows-10-universal

Windows UWP connect to BLE device after discovery

萝らか妹 提交于 2019-11-26 19:37:44
问题 I'm using BluetoothLEAdvertisementWatcher to find nearby BLE devices and it's working well. After finding them I want to connect and read/write data via GATT. But I can't figure out how to use the API after getting the BluetoothLEAdvertisement (https://msdn.microsoft.com/de-de/library/windows/apps/windows.devices.bluetooth.genericattributeprofile). public class Adapter { private readonly BluetoothLEAdvertisementWatcher _bleWatcher = new BluetoothLEAdvertisementWatcher(); public Adapter() {

How to access registry key in a UWP app?

北慕城南 提交于 2019-11-26 17:12:37
问题 I would like to access windows10 registry key by a UWP app. key as: \HKEY_LOCAL_MACHINE\SOFTWARE\MyCompanyName\MyName I can not find any function call to accomplish it. Please indicate me How to do it? Thank you, 回答1: You can read registry values from a Win32 runFullTrust background process launched from a UWP application, and you can write values in the HKEY_LOCAL_MACHINE hive from an "elevated" Win32 application launched from that runFullTrust process. These techniques are powerful and

Remove ios, windows8, and wp8 from Xamarin Forms PCL - nuget 3.0 opt-into error?

霸气de小男生 提交于 2019-11-26 14:10:25
问题 I'm working on a Xamarin Forms project. I want to target Android and Windows 10 UWP. When I try to clean up the PCL by removing "Windows 8", "Windows Phone Silverlight 8", "Windows Phone 8.1", "Xamarin.ios", and "Xamarin.ios (classic)" from the PCL targets, I get the following nasty... I'm really just trying to remove WP8 as I don't care about targeting it. The project's targets cannot be changed. The selected targets require the project to opt-into NuGet 3.0 support, however, Visual Studio