Skip to content

Improve BLE error handling and clean up peripheral delegate references - #289

Merged
sameerasw merged 3 commits into
mainfrom
develop
Aug 14, 2026
Merged

Improve BLE error handling and clean up peripheral delegate references#289
sameerasw merged 3 commits into
mainfrom
develop

Conversation

@sameerasw

Copy link
Copy Markdown
Owner

This pull request introduces several improvements to the Bluetooth Low Energy (BLE) central manager logic in BLECentralManager.swift, primarily focusing on better resource management and enhanced error handling during BLE operations. It also bumps the app’s version and build numbers in the Xcode project configuration.

BLE resource management and error handling improvements:

  • Ensured the delegate property of CBPeripheral is set to nil in all disconnection and failure scenarios to prevent potential retain cycles and unintended callbacks. [1] [2] [3] [4] [5]
  • Added comprehensive error logging for BLE delegate methods, including service and characteristic discovery, value updates, notification state changes, descriptor operations, and RSSI reads, to aid in debugging and monitoring BLE interactions. [1] [2] [3]
  • Improved robustness by safely unwrapping and validating CBService and CBCharacteristic objects before use, reducing the risk of runtime errors.

Project configuration updates:

  • Incremented the CURRENT_PROJECT_VERSION from 30 to 31 and updated the MARKETING_VERSION from 4.0.0 to 4.0.1 in AirSync.xcodeproj/project.pbxproj to reflect a new release. [1] [2] [3] [4] [5] [6]

@sameerasw sameerasw self-assigned this Aug 14, 2026
@sameerasw sameerasw added bug Something isn't working enhancement New feature or request labels Aug 14, 2026
@sameerasw
sameerasw merged commit 85f6041 into main Aug 14, 2026
1 check passed
@github-project-automation github-project-automation Bot moved this from Backlog to Done in AirSync Features and Bugs Aug 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working enhancement New feature or request

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant