columba/python/ble_modules
torlando-tech 0afd5019b1 fix: BLE shutdown cleanup + battery-tunable power settings
Fix timing bug where BLE scanner/advertiser/GATT connections persist after
service restart because System.exit(0) kills the process before the async
Python shutdown chain can complete. Add synchronous stopImmediate() methods
that run directly on Main thread before process exit.

Add user-configurable BLE power settings (Performance/Balanced/Battery Saver/
Custom presets) with per-interface controls for scan interval, scan duration,
and advertising refresh interval. Settings flow through the full stack:
UI → Room DB → Python config → Kotlin BLE bridge → Scanner/Advertiser.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-06 15:09:44 -05:00
..
__init__.py initial commit 2025-11-30 19:59:14 -05:00
android_ble_driver.py fix: BLE shutdown cleanup + battery-tunable power settings 2026-03-06 15:09:44 -05:00
android_ble_interface.py fix: BLE shutdown cleanup + battery-tunable power settings 2026-03-06 15:09:44 -05:00