Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pureswift/bluetooth
Swift Bluetooth library
https://github.com/pureswift/bluetooth
bluetooth bluetooth-low-energy embedded gatt l2cap swift
Last synced: 6 days ago
JSON representation
Swift Bluetooth library
- Host: GitHub
- URL: https://github.com/pureswift/bluetooth
- Owner: PureSwift
- License: mit
- Created: 2016-04-02T01:45:12.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2024-11-10T19:08:19.000Z (6 days ago)
- Last Synced: 2024-11-10T20:19:39.831Z (6 days ago)
- Topics: bluetooth, bluetooth-low-energy, embedded, gatt, l2cap, swift
- Language: Swift
- Homepage: http://pureswift.github.io/Bluetooth/
- Size: 8.56 MB
- Stars: 178
- Watchers: 15
- Forks: 25
- Open Issues: 15
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
![Bluetooth](https://github.com/PureSwift/Bluetooth/raw/master/Assets/PureSwiftBluetooth.png)
[![Swift][swift-badge]][swift-url]
[![Platform][platform-badge]][platform-url]
[![Release][release-badge]][release-url]
[![License][mit-badge]][mit-url]Pure Swift Bluetooth Definitions.
## Usage
```swift
import Bluetoothlet 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
```swift
import PackageDescriptionlet 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](http://pureswift.github.io/Bluetooth/documentation/bluetooth/).
Documentation can be generated with [DocC](https://github.com/apple/swift-docc).## See Also
- [BluetoothLinux](https://github.com/PureSwift/BluetoothLinux) - Pure Swift Linux Bluetooth Stack
- [GATT](https://github.com/PureSwift/GATT) - Bluetooth Generic Attribute Profile (GATT) for Swift
- [Netlink](https://github.com/PureSwift/Netlink) - Swift library for communicating with Linux Kernel Netlink subsystem (Linux Only)
- [Predicate](https://github.com/PureSwift/Predicate) - Pure Swift Predicate implementation
- [TLVCoding](https://github.com/PureSwift/TLVCoding) - Swift TLV8 (Type-Length-Value) Encoding libraryLicense
-------**Bluetooth** is released under the MIT license. See LICENSE for details.
[swift-badge]: https://img.shields.io/badge/swift-5.7-F05138.svg "Swift 5.7"
[swift-url]: https://swift.org
[platform-badge]: https://img.shields.io/badge/platform-macOS%20%7C%20iOS%20%7C%20watchOS%20%7C%20tvOS%20%7C%20Linux%20%7C%20Android-lightgrey.svg
[platform-url]: https://swift.org
[mit-badge]: https://img.shields.io/badge/License-MIT-blue.svg?style=flat
[mit-url]: https://tldrlegal.com/license/mit-license
[build-status-badge]: https://github.com/PureSwift/Bluetooth/workflows/Swift/badge.svg
[build-status-url]: https://github.com/PureSwift/Bluetooth/actions
[release-badge]: https://img.shields.io/github/release/PureSwift/Bluetooth.svg
[release-url]: https://github.com/PureSwift/Bluetooth/releases
[docs-url]: http://pureswift.github.io/Bluetooth/documentation/bluetooth/