<!--
{
  "availability" : [
    "iOS: 16.0.0 -",
    "iPadOS: 16.0.0 -",
    "macCatalyst: 16.0.0 -",
    "macOS: 13.0.0 -",
    "tvOS: 16.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 9.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CoreMIDI",
  "identifier" : "/documentation/CoreMIDI/MIDIBluetoothDriverActivateAllConnections()",
  "metadataVersion" : "0.1.0",
  "role" : "Function",
  "symbol" : {
    "kind" : "Function",
    "modules" : [
      "Core MIDI"
    ],
    "preciseIdentifier" : "c:@F@MIDIBluetoothDriverActivateAllConnections"
  },
  "title" : "MIDIBluetoothDriverActivateAllConnections()"
}
-->

# MIDIBluetoothDriverActivateAllConnections()

Promote all active Bluetooth connections into an online MIDI device capable of input and output.

```
func MIDIBluetoothDriverActivateAllConnections() -> OSStatus
```

## Return Value

A status code that indicates the result of the activation.

## Discussion

To establish a Bluetooth MIDI driver connection to a Bluetooth Low Energy (BLE) MIDI peripheral, perform the following steps:

1. Scan for the peripheral’s advertised BLE MIDI service by using <doc://com.apple.documentation/documentation/CoreBluetooth>.
2. Connect to the advertised peripheral by using <doc://com.apple.documentation/documentation/CoreBluetooth>.
3. Call [`MIDIBluetoothDriverActivateAllConnections()`](/documentation/CoreMIDI/MIDIBluetoothDriverActivateAllConnections()) upon successful connection.
4. Confirm the peripheral’s registration by using [`Core MIDI`](/documentation/CoreMIDI) and inspecting [`MIDIDeviceRef`](/documentation/CoreMIDI/MIDIDeviceRef).

If the device reference is present, [`Core MIDI`](/documentation/CoreMIDI) owns a connection to the peripheral, so use <doc://com.apple.documentation/documentation/CoreBluetooth> to disconnect from the peripheral.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)