Introduction to BLE on iOS

Introduction to BLE on iOS

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

5ed5581b2484d8de8d56161beabbe8c2?s=128

Hugues Bernet-Rollande

September 23, 2016
Tweet

Transcript

  1. 2.

    INTRODUCTION TO BLE ON IOS @rompelstilchen SUMMARY ‣ BLE Protocol

    ‣ CoreBluetooth ‣ The universal battery monitor 2
  2. 4.

    @rompelstilchen INTRODUCTION TO BLE ON IOS CENTRAL VS PERIPHERAL ▸

    Central (Master) ▸ Peripheral (Slave) ▸ Advertising packet 4
  3. 5.

    @rompelstilchen INTRODUCTION TO BLE ON IOS DATA HIERACHY ▸ Profiles

    ▸ Services ▸ Characteristics ▸ Descriptors 5
  4. 8.

    @rompelstilchen INTRODUCTION TO BLE ON IOS CBCENTRALMANAGER & DELEGATE ▸

    State of the Bluetooth ▸ Discover a peripheral ▸ Connect to a peripheral ▸ iOS Optimization 8
  5. 9.

    @rompelstilchen INTRODUCTION TO BLE ON IOS CBPERIPHERAL & DELEGATE ▸

    Discover services ▸ Discover characteristics ▸ Read / write / notify 9
  6. 11.

    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. 12.

    @rompelstilchen INTRODUCTION TO BLE ON IOS LIGHTBLUE APP ▸ Discover

    devices ▸ Discover services ▸ Discover characteristics ▸ Read / write / notify ▸ … 12
  8. 13.

    @rompelstilchen INTRODUCTION TO BLE ON IOS BLUETOOTH EXPLORER ▸ Made

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