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 at the given twelve hex digit Bluetooth address.

Properties

Property Description
BluetoothDeviceId The twelve hex digit Bluetooth address of the device.
Comment An optional comment written into the configuration file alongside the entry. It has no effect on the connection and exists to make the file readable.
TransportId The Bluetooth transport’s GUID.
ConfigJson The configuration file representation of this connection.

Pass this to MidiBluetoothTransportManager.ConnectDeviceAsync to connect now, and to MidiServiceTransportPluginConfigManager.SaveUpdate to have the device reconnect after the service restarts. The two are separate steps, so a connection which the service rejects is never written to the configuration file.

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.