Swiftpack.co - PureSwift/Bluetooth as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by PureSwift.
PureSwift/Bluetooth 6.0.3
Pure Swift Bluetooth library
⭐️ 106
🕓 4 weeks ago
iOS macOS watchOS tvOS
.package(url: "https://github.com/PureSwift/Bluetooth.git", from: "6.0.3")

Bluetooth

Swift Platform Release License

Pure Swift Bluetooth Definitions.

Usage

import Bluetooth

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

Installation

Swift Package Manager

import PackageDescription

let package = Package(
    name: "hcitool",
    products: [
        .executable(name: "hcitool", targets: ["hcitool"])
    ],
    dependencies: [
        .package(url: "https://github.com/PureSwift/Bluetooth.git", .branch("master"))
    ],
    targets: [
        .target(
            name: "hcitool",
            dependencies: [
                "Bluetooth"
            ]
        )
    ]
)

Documentation

Read the documentation here. Documentation can be generated with DocC.

See Also

  • BluetoothLinux - Pure Swift Linux Bluetooth Stack
  • GATT - Bluetooth Generic Attribute Profile (GATT) for Swift
  • Netlink - Swift library for communicating with Linux Kernel Netlink subsystem (Linux Only)
  • Predicate - Pure Swift Predicate implementation
  • TLVCoding - Swift TLV8 (Type-Length-Value) Encoding library

License

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

GitHub

link
Stars: 106
Last commit: Yesterday
jonrohan Something's broken? Yell at me @ptrpavlik. Praise and feedback (and money) is also welcome.

Release Notes

v6.0.3
4 weeks ago
  • 0b98c401c11aa3319a02d7da693d6ae009bc5468 Conform HCIStatus to Equatable
  • b00823e962c0016c29f146f92a1670c86830005b Updated documentation

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics