Bluetooth + Kotlin: It's a Match!
summary
Empatica starts building an EmbracePlus SDK in January 2020 and after two years ships a Bluetooth stack with 100% Kotlin and Kotlin Multiplatform reuse plus Compose in production; code uses a threaded Handler to serialize GATT writes, adds CRC checks for corrupted packets, and logs network type after discovering a phone that corrupts Bluetooth on 2.4GHz. Debugging relies on Bluetooth packet captures (developer setting → Wireshark), ADB over Wi‑Fi and Visor for remote devices, and explicit handling for Android 12/13 Bluetooth permissions.
AI-written summary · about
chapters (9)
- 0:00Start
- 4:12GATT Characteristics
- 6:38Scanning Tips
- 8:27Read and Write on BluetoothGattCharacteristic
- 14:51Debug Using LogCat
- 17:13Callback approach
- 20:21Kotlin Flows
- 31:44Manifest Permission
- 34:05Methods deprecation
related talks
13mLightning Talk: Beyond Good Enough: Why We Want a Kotlin API and SDK
25mKeeping Up Continuous Development of BLE-Based Apps
35mState of BLE on Android in 2022
38mBest Practices for Bluetooth Development
34mBluetooth Low Energy in Android: Getting it Done
40mState of Bluetooth LE on Android in 2023
38mBluetooth LE for Modern Android Development
38mBuilding Android apps in 2022
