Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Introduction to BLE on iOS

Introduction to BLE on iOS

Slides supporting a workshop at FrenchKit introducing Bluetooth Low Energy on iOS

Hugues Bernet-Rollande

September 23, 2016
Tweet

More Decks by Hugues Bernet-Rollande

Other Decks in Programming

Transcript

  1. INTRODUCTION TO BLE ON IOS @rompelstilchen SUMMARY ‣ BLE Protocol

    ‣ CoreBluetooth ‣ The universal battery monitor 2
  2. @rompelstilchen INTRODUCTION TO BLE ON IOS CENTRAL VS PERIPHERAL ▸

    Central (Master) ▸ Peripheral (Slave) ▸ Advertising packet 4
  3. @rompelstilchen INTRODUCTION TO BLE ON IOS DATA HIERACHY ▸ Profiles

    ▸ Services ▸ Characteristics ▸ Descriptors 5
  4. @rompelstilchen INTRODUCTION TO BLE ON IOS CBCENTRALMANAGER & DELEGATE ▸

    State of the Bluetooth ▸ Discover a peripheral ▸ Connect to a peripheral ▸ iOS Optimization 8
  5. @rompelstilchen INTRODUCTION TO BLE ON IOS CBPERIPHERAL & DELEGATE ▸

    Discover services ▸ Discover characteristics ▸ Read / write / notify 9
  6. INTRODUCTION TO BLE ON IOS @rompelstilchen STEP BY STEP ▸

    Discover BLE devices ▸ Connect to it ▸ Discover services ▸ Device using Battery GATT BLE profile? ▸ Read battery level ▸ Notify? 11
  7. @rompelstilchen INTRODUCTION TO BLE ON IOS LIGHTBLUE APP ▸ Discover

    devices ▸ Discover services ▸ Discover characteristics ▸ Read / write / notify ▸ … 12
  8. @rompelstilchen INTRODUCTION TO BLE ON IOS BLUETOOTH EXPLORER ▸ Made

    by Apple ▸ Discover devices ▸ Discover services ▸ Discover characteristics ▸ Read / write / notify ▸ … 13