Connects to a Bluetooth device, given some string deviceIdīluetoothLEDevice bleDevice = await BluetoothLEDevice.FromIdAsync(deviceId) To initiate a connection: when you create a BluetoothLEDevice via FromBluetoothAddressAsync or FromIdAsync the system will try to initiate a connection to that peripheral, if it does not already hold a connection. Is there a way to control the connection with a specific bluetooth LE device? There is a DeviceWatcher background task that you can register for to trigger your app when your Bluetooth device connects. This is defined behavior in Bluetooth, as the peripheral will always send out a connection request when it is turned on. Once the device is paired, whenever it turns on close to the Windows 10 machine, it will try to connect.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |