| Namespace | Windows.Devices.Midi2.Transports.Bluetooth |
|---|---|
| Type Name | MidiBluetoothPeripheralStatus |
| Type | WinRT Runtime Class |
| IDL | MidiBluetoothPeripheralStatus.idl |
Returned by MidiBluetoothTransportManager.GetPeripheralStatus, and carried on MidiBluetoothPeripheralResponse.
| Property | Description |
|---|---|
IsRunning |
True when this PC is published as a Bluetooth MIDI device. |
Protocol |
The MidiBluetoothProtocol being advertised. Only one can be advertised at a time. |
AdvertisedName |
The name remote devices see. Windows takes this from the computer name and gives an application no way to override it, so it is reported rather than configured. |
SubscribedClientCount |
How many remote devices have subscribed. |
ClientPolicy |
The MidiBluetoothPeripheralClientPolicy applied to the next remote Central which connects. Reported whether or not the peripheral is running, because it describes the rule rather than the current state. |
IsClientConnected |
True when a remote device is subscribed. This is the only sign that data can actually move. |
EndpointDeviceId |
The MIDI endpoint’s device interface id. The endpoint represents the remote device, so it exists only while one is connected. |
EndpointDeviceInstanceId |
The endpoint’s instance id, which is what an endpoint customization matches on. |
MessagesReceived |
Count of messages received from the connected device. |
MessagesSent |
Count of messages sent to the connected device. |
PacketsReceived |
Count of Bluetooth packets received, counted before any decoding. Packets climbing while MessagesReceived stays at zero means the connected device is transmitting something this transport cannot decode. |
PacketsSent |
Count of Bluetooth packets sent to the connected device. |
ConnectedClient |
The MidiBluetoothPeripheralClient which is connected, or null when nothing is. |
AllowedClients |
The remembered allow decisions the service is currently honoring, as MidiBluetoothRememberedClient entries. |
DeniedClients |
The remembered deny decisions. |
The service holds AllowedClients and DeniedClients but never writes them to the configuration file itself. Pass this whole status to MidiBluetoothPeripheralClientListConfig to save them, or decisions made with MidiBluetoothApprovalScope.Always are lost on the next service restart.
The MIDI endpoint here represents the remote device, in the same way a Network MIDI 2.0 host endpoint represents the remote client. There is nothing for an application to open until something connects.
