Skip to content

iOS library for connecting with, and sending data to, another device via Bluetooth LE.

License

Notifications You must be signed in to change notification settings

codeswimmer/BTLELib

Repository files navigation

BTLELib

iOS library for connecting with and sending data to another device via Bluetooth LE.

Features:
  • Simplified, abstracted API to CoreBluetooth
    • BTLEPeripheral - data provider
    • BTLECentral - consumer of data provided by peripheral
    • Send & Receive Data
      • BTLEDataSender
      • BTLEReceiver
      • Can send either a packet (<= 20 bytes) or package of data
        • Packaged data is parceled into 20 byte chunks
        • Queued up & sent in order to receiver via GCD
        • Provides progress updates to delegates (both sender & receiver)
  • Ideal for adding BTLE support to your apps
  • Easily turn any device that provides BTLE into a peripheral or central
  • Note that this is not yet a full-featured BTLE library:
    • The initial release focuses on seamless pairing & data transfer between devices
    • Future additions will provide generalized support for:
      • Services
      • Read / write characteristics
      • etc.
Using
  • Clone repo (or download archive file)
  • Drag & drop BTLELib.xcodeproj into your workspace
  • Follow Apple's documentation on how to use static libraries in iOS

The library uses ARC. It has been developed using Xcode 5 & tested against iOS 7.x.

Documentation

Latest HTML documentation

The Xcode project includes a Documentation target which can be used to generate documentation for the API.

It requires the use of appledoc.

Once you've built the documentation it will be available through Xcode's Documentation window.

Examples
  • The BTLELibExample sends a bit over 10K of data to a receiver
  • Requires two devices running the example app
  • One serves as sender, the other as receiver; user selectable
  • Provides progress updates to UI via progress bar on both the sending & receiving devices

About

iOS library for connecting with, and sending data to, another device via Bluetooth LE.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published