Skip to content

Feature: Update the MTU for a BLE connection#5

Merged
tuuhin merged 4 commits intomainfrom
feature/update_mtu
Feb 7, 2026
Merged

Feature: Update the MTU for a BLE connection#5
tuuhin merged 4 commits intomainfrom
feature/update_mtu

Conversation

@tuuhin
Copy link
Owner

@tuuhin tuuhin commented Feb 7, 2026

Included ability to request a larger MTU (Maximum Transmission Unit) for BLE connections and upgrades the project's build tools

Key Changes

  • Added an option/dialog to update MTU for better data transmission
  • Upgraded Android Gradle Plugin (AGP) to 9.0 and updated dependencies in build.gradle.kts
  • Ensured GATT is properly closed on connection failure

BLE device can request a larger transmission unit for conversation, included option for that
Alongside BLEConnectionEvents.kt are events for rssi update, phy read , and mtu update no direct read for device rssi
BLEPhysicalChannels.kt a subclass for BLE phy read
If connection failed gatt is being closed in BLEClientGattCallback.kt
Alongside options for refresh services and rssi include option to show dialog for updating mtu
In BLEDeviceViewModel.kt option to show toast based on the BLEConnection events,
rssi is kept zero and only after update its refreshed
@tuuhin tuuhin merged commit 6c5c35c into main Feb 7, 2026
1 check passed
@tuuhin tuuhin deleted the feature/update_mtu branch February 7, 2026 15:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant