NOW LOADING

MidiBluetoothDeviceConnectConfig


Identifies a Bluetooth MIDI device to connect to, and can be saved to make the connection persist
Namespace Windows.Devices.Midi2.Transports.Bluetooth
Type Name MidiBluetoothDeviceConnectConfig
Type WinRT Runtime Class
IDL MidiBluetoothDeviceConnectConfig.idl

Implements IMidiServiceTransportPluginConfig.

Constructors

Constructor Description
MidiBluetoothDeviceConnectConfig(bluetoothDeviceId) Creates a configuration for the device with this Bluetooth address, as twelve hex digits

Properties

Property Description
BluetoothDeviceId The device’s Bluetooth address, as twelve hex digits
Comment An optional comment saved with the entry in the configuration. It doesn’t change the connection. It’s there to make the entry easier for a person to recognize
TransportId The Bluetooth transport’s GUID
ConfigJson This connection, as JSON

Pass this to MidiBluetoothTransportManager.ConnectDeviceAsync to connect now. Pass it to MidiServiceTransportPluginConfigManager.SaveUpdate to have the device connect again after the service restarts. They’re separate steps, so a connection the service rejects is never saved.

Didn't find what you were looking for?

Windows MIDI Services is an open source project with all source available on GitHub. We have a great community on Discord as well. Between GitHub and Discord, you should find the information you are looking for.