This guide will show you the basics of developing your own Bluetooth Low Energy (BLE) app using the Core Bluetooth Framework in Xcode. 

You'll need a basic understanding of Swift, but no prior experience with Bluetooth Low Energy is required. The example code provided in this guide can be applied to both iPhone and iPad users running the current version of iOS.

For this guide I'll be using the Adafruit Feather 32u4 Bluefruit LE to send and receive data.

Before you begin, know that the Simulator in Xcode isn't capable of using Bluetooth LE services. You'll need to follow along using an iPhone or iPad running the most current version of iOS (Version 14+).

Since you'll need to test your app using an iOS device, you'll also need an Apple Developer membership (please note that free membership enrollment is fine for following along with this guide)If you need help getting started as an iOS developer, check out the Adafruit guide covering how to enroll to the Apple Developer program and gain membership:

Before starting...

  • Install Xcode. Click here to download Xcode from the Apple App Store.
  • Make sure your version of Xcode is up to date. I'm using Xcode Version 12.4 at the time of making this guide.
  • While in Xcode make sure the Development Target is 14.0 or higher.
  • Download the Arduino IDE from the main website here if you haven't already.

Parts

You don't need much to start this project, but you'll need these:

Feather is the new development board from Adafruit, and like its namesake it is thin, light, and lets you fly! We designed Feather to be a new standard for portable microcontroller...
Out of Stock

Or

Feather is the new development board from Adafruit, and like its namesake it is thin, light, and lets you fly! We designed Feather to be a new standard for portable microcontroller...
$29.95
In Stock

And

This here is your standard A to micro-B USB cable, for USB 1.1 or 2.0. Perfect for connecting a PC to your Metro, Feather, Raspberry Pi or other dev-board or...
$2.95
In Stock

This guide was first published on Jul 27, 2017. It was last updated on 2021-02-23 12:51:57 -0500.

This page (Overview) was last updated on Feb 23, 2021.

Text editor powered by tinymce.