NOW LOADING

MidiBluetoothPeripheralConfig


Configures publishing this PC as a Bluetooth MIDI peripheral
Namespace Windows.Devices.Midi2.Transports.Bluetooth
Type Name MidiBluetoothPeripheralConfig
Type WinRT Runtime Class
IDL MidiBluetoothPeripheralConfig.idl

Implements IMidiServiceTransportPluginConfig.

Constructors

Constructor Description
MidiBluetoothPeripheralConfig() Creates a configuration which advertises Bluetooth Low Energy MIDI 1.0.
MidiBluetoothPeripheralConfig(protocol) Creates a configuration which advertises the given MidiBluetoothProtocol.

Properties

Property Description
Protocol Which MidiBluetoothProtocol to advertise. Only one can be advertised at a time, so a MIDI 1.0 device cannot connect while MIDI 2.0 is selected.
IsEnabled Saving with this false is how a caller stops the peripheral being published on the next service start, since stopping it is otherwise only for this session.
TransportId The Bluetooth transport’s GUID.
ConfigJson The configuration file representation of this setting.

The advertised name is not configurable. Windows takes it from the computer name and the GATT service provider gives an application no way to override it, so it is reported through MidiBluetoothPeripheralStatus.AdvertisedName instead.

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.