Swiftpack.co - Package - PureSwift/Bluetooth

Bluetooth

Swift Platform Release License

Build Status CodeBeat CodeCov.io Docs

SPM compatible Carthage compatible

Pure Swift Bluetooth Definitions.

Usage

import Bluetooth

let uuid128bit = BluetoothUUID(rawValue: "60F14FE2-F972-11E5-B84F-23E070D5A8C7")
let uuid16bit = BluetoothUUID(rawValue: "FEA9")
let address = Address(rawValue: "00:1A:7D:DA:71:13")

Installation

Swift Package Manager

import PackageDescription

let package = Package(
    dependencies: [
        .Package(url: "https://github.com/PureSwift/Bluetooth.git", majorVersion: 1)
        ]
)

Carthage

github "PureSwift/Bluetooth"

Documentation

Read the documentation here. Documentation can be generated with Jazzy. For more information, see the gh-pages branch.

Code Coverage

See Also

  • BluetoothLinux - Pure Swift Linux Bluetooth Stack
  • BluetoothDarwin - Low Level Swift Bluetooth library for the Darwin kernel
  • BluetoothAndroid - Swift Bluetooth stack for Android
  • GATT - Bluetooth Generic Attribute Profile (GATT) for Swift
  • SwiftFoundation - Cross-Platform, Protocol-Oriented Programming base library to complement the Swift Standard Library.
  • Cacao - Pure Swift Cross-platform UIKit
  • Silica - Pure Swift CoreGraphics (Quartz2D) implementation
  • Predicate - Pure Swift Predicate implementation

License

Bluetooth is released under the MIT license. See LICENSE for details.

Github

link
Stars: 11
Help us keep the lights on

Dependencies

Releases

1.7.7 - Apr 19, 2018

  • #25 Fixed GATT Server Notifications
  • 52f90fb Fixed GATTClientCharacteristicConfiguration
  • 565221b Added GATT.CharacteristicProperty.name
  • 0e1d8fc Added ATTAttributePermission.name
  • 33a351d Fixed handle validation in GATTServer
  • c8806b0 Refactored GATTDatabase.Attribute

1.7.6 - Apr 17, 2018

  • #25 Implemented GATT Server Notifications
  • #32 Implemented GATT Server Indications
  • f8b6525 Added GATTServer.didWrite
  • ca5bdf1 Added GATTServer.writeValue()

1.7.5 - Apr 17, 2018

  • #3 Added more HCI commands
  • f336ed2 Added defined Bluetooth UUID extensions

1.7.4 - Apr 11, 2018

  • #3 Added HCI commands

1.7.3 - Apr 10, 2018

  • #13 Added HCICommand.name
  • #27 Added ATT PDU unit tests
  • #28 Integrated xcov
  • 79ba13b Updated to Xcode 9.3
  • d7a8524 Refactored ATTOpcode.type
  • 43bb5ca Removed BluetoothUUID.littleEndianData
  • 7552f5b Added ByteSwap protocol
  • 601808c Added ATTMaximumTransmissionUnit
  • 5c5114b79d14d05db136e8aa4a886f0796f5526a Fixed iBeacon