use native method of setting MTU on Pebble 2 Duo

This commit is contained in:
Andreas Shimokawa
2025-10-30 17:40:11 +01:00
parent 346bb208d5
commit 09a99f934a
2 changed files with 5 additions and 1 deletions
+3
View File
@@ -1,5 +1,8 @@
### Changelog
#### Next
* Initial support for Pebble 2 Duo (Experimental)
#### 0.87.1
* Garmin: Fix strength workout fetching and parsing
@@ -247,7 +247,8 @@ class PebbleGATTClient extends BluetoothGattCallback {
NotifyAction.writeDescriptor(gatt, descriptor, BluetoothGattDescriptor.ENABLE_NOTIFICATION_VALUE);
gatt.setCharacteristicNotification(gatt.getService(SERVICE_UUID).getCharacteristic(MTU_CHARACTERISTIC), true);
} else {
LOG.info("Could not find MTU Characteristic. This seems to be a 2025 Pebble");
LOG.info("Could not find MTU Characteristic. This seems to be a 2025 Pebble, requesting MTU via gatt");
gatt.requestMtu(339);
}
}