MIDIBluetoothDriverActivateAllConnections()
Promote all active Bluetooth connections into an online MIDI device capable of input and output.
Declaration
func MIDIBluetoothDriverActivateAllConnections() -> OSStatusReturn 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:
Scan for the peripheral’s advertised BLE MIDI service by using Core Bluetooth.
Connect to the advertised peripheral by using Core Bluetooth.
Call MIDIBluetoothDriverActivateAllConnections() upon successful connection.
Confirm the peripheral’s registration by using Core MIDI and inspecting MIDIDeviceRef.
If the device reference is present, Core MIDI owns a connection to the peripheral, so use Core Bluetooth to disconnect from the peripheral.