Bluetooth | Bluetooth low energy | Discovering Peripherals | Swift

We will learn about how central discovers peripheral devices and show them in a UITableView. Make sure to have read Bluetooth & Bluetooth fundamentals.

Wrap up :

So to scan for peripherals the least steps are:

  • Init CBCentralManager
  • Implement CBCentralManager delegate method

  • Check for power state ON in

    and start scanning.
  • Above step will give you delegate call back with peripheral information in delegate method:

You got the peripheral in didDiscover delegate method.

You have done it! 🙂