From 09a99f934aedd2510f2152dd8eca2fd8a89a286a Mon Sep 17 00:00:00 2001 From: Andreas Shimokawa Date: Thu, 30 Oct 2025 17:40:11 +0100 Subject: [PATCH] use native method of setting MTU on Pebble 2 Duo --- CHANGELOG.md | 3 +++ .../service/devices/pebble/ble/PebbleGATTClient.java | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7cff0211dc..d8e80acefa 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,8 @@ ### Changelog +#### Next +* Initial support for Pebble 2 Duo (Experimental) + #### 0.87.1 * Garmin: Fix strength workout fetching and parsing diff --git a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/pebble/ble/PebbleGATTClient.java b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/pebble/ble/PebbleGATTClient.java index 470a2207fe..30217aaf27 100644 --- a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/pebble/ble/PebbleGATTClient.java +++ b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/pebble/ble/PebbleGATTClient.java @@ -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); } }