Loading android/app/res/values/config.xml +8 −0 Original line number Diff line number Diff line Loading @@ -33,4 +33,12 @@ fire Bluetooth LE scan result callbacks in addition to having one of the location permissions. --> <bool name="strict_location_check">true</bool> <!-- Specifies the min/max connection interval parameters for high priority and low power GATT configurations. These values are in multiples of 1.25ms. --> <integer name="gatt_high_priority_min_interval">9</integer> <integer name="gatt_high_priority_max_interval">12</integer> <integer name="gatt_low_power_min_interval">80</integer> <integer name="gatt_low_power_max_interval">100</integer> </resources> android/app/src/com/android/bluetooth/gatt/GattService.java +4 −4 Original line number Diff line number Diff line Loading @@ -1673,13 +1673,13 @@ public class GattService extends ProfileService { switch (connectionPriority) { case BluetoothGatt.CONNECTION_PRIORITY_HIGH: minInterval = 9; // 11.25ms maxInterval = 12; // 15ms minInterval = getResources().getInteger(R.integer.gatt_high_priority_min_interval); maxInterval = getResources().getInteger(R.integer.gatt_high_priority_max_interval); break; case BluetoothGatt.CONNECTION_PRIORITY_LOW_POWER: minInterval = 80; // 100ms maxInterval = 100; // 125ms minInterval = getResources().getInteger(R.integer.gatt_low_power_min_interval); maxInterval = getResources().getInteger(R.integer.gatt_low_power_max_interval); latency = 2; break; } Loading Loading
android/app/res/values/config.xml +8 −0 Original line number Diff line number Diff line Loading @@ -33,4 +33,12 @@ fire Bluetooth LE scan result callbacks in addition to having one of the location permissions. --> <bool name="strict_location_check">true</bool> <!-- Specifies the min/max connection interval parameters for high priority and low power GATT configurations. These values are in multiples of 1.25ms. --> <integer name="gatt_high_priority_min_interval">9</integer> <integer name="gatt_high_priority_max_interval">12</integer> <integer name="gatt_low_power_min_interval">80</integer> <integer name="gatt_low_power_max_interval">100</integer> </resources>
android/app/src/com/android/bluetooth/gatt/GattService.java +4 −4 Original line number Diff line number Diff line Loading @@ -1673,13 +1673,13 @@ public class GattService extends ProfileService { switch (connectionPriority) { case BluetoothGatt.CONNECTION_PRIORITY_HIGH: minInterval = 9; // 11.25ms maxInterval = 12; // 15ms minInterval = getResources().getInteger(R.integer.gatt_high_priority_min_interval); maxInterval = getResources().getInteger(R.integer.gatt_high_priority_max_interval); break; case BluetoothGatt.CONNECTION_PRIORITY_LOW_POWER: minInterval = 80; // 100ms maxInterval = 100; // 125ms minInterval = getResources().getInteger(R.integer.gatt_low_power_min_interval); maxInterval = getResources().getInteger(R.integer.gatt_low_power_max_interval); latency = 2; break; } Loading