I’m trying to change the Bluetooth MIDI MTU in our Android app. The change is very simple in JuceMidiSupport.java:
public void onConnectionStateChange (BluetoothGatt gatt, int status, int newState)
{
if (newState == BluetoothProfile.STATE_CONNECTED)
{
gatt.requestConnectionPriority (BluetoothGatt.CONNECTION_PRIORITY_HIGH);
boolean ret = gatt.requestMtu(185); //<-- added this line
owner.pairBluetoothDeviceStepTwo (gatt.getDevice ());
}
}
However, this results in a rather weird bug: our app can no longer receive sysex messages. It receives note on/offs, CCs, pitch wheel changes, etc, but no sysex.
I do not have this issue with a similarly modified version of the midisuite apps, so it would seem to indicate some issue in the JUCE layer…?