MicrosoftDocs / winrt-api

WinRT reference content for developing Microsoft Universal Windows Platform (UWP) apps
Creative Commons Attribution 4.0 International
227 stars 493 forks source link

API Request - BLE peripheral connect method; connection parameters #2454

Closed epatstarkey closed 5 months ago

epatstarkey commented 5 months ago

Edit - Closed for now. I may re-open later with more thoughts.

https://learn.microsoft.com/en-us/uwp/api/windows.devices.bluetooth.bluetoothledevice?view=winrt-22621

Request:

Add a connect method which accepts connection parameters BluetoothLEPreferredConnectionParameters

It's not immediately clear when the connection indication will actually be sent, or with what parameters. Calling BluetoothLEDevice.FromBluetoothAddressAsync appears to create an instance in the disconnected state. GATT access methods are what actually kick off the connection indication.

Creating a connect method that accepted connection parameters would make this clear.