~/talk

Connecting the bean – The bumpy road of BLE on Android

Talkat droidcon Berlin 2015 · 2015-06-15..06-17· [iot, android]
slides:none on file

Built an unofficial SDK for the LightBlue Bean and documents concrete Android BLE pitfalls: KitKat’s startLeScan can silently fail and returns a cryptic boolean, scan callbacks are inconsistent across devices, and Lollipop fixes add filtering, batching and low‑power modes but require hardware support (Nexus 5 lacks low‑power). Connection quirks include an unreliable autoconnect flag, pairing triggered only on read, write operations must wait for callbacks, 20‑byte MTU packet assembly, and hard limits of 4 connections on KitKat / 7 on Jelly Bean / 15 on Lollipop.

AI-written summary · about

  1. 0:00Introduction
  2. 1:54BLE basics on Android
  3. 3:20Scanning for BLE devices
  4. 8:21Lollipop BLE improvements
  5. 10:06Connecting to BLE device
  6. 12:14Discovering services
  7. 14:17Reading and writing characteristics
  8. 16:03Setting up notifications
  9. 18:16Writing data and packets
  10. 19:42Conclusions and learning resources
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.