{"id":19527641,"url":"https://github.com/pureswift/bluetooth","last_synced_at":"2025-05-16T19:08:37.196Z","repository":{"id":37733875,"uuid":"55272510","full_name":"PureSwift/Bluetooth","owner":"PureSwift","description":"Swift Bluetooth library","archived":false,"fork":false,"pushed_at":"2025-01-13T05:27:48.000Z","size":10132,"stargazers_count":198,"open_issues_count":13,"forks_count":27,"subscribers_count":14,"default_branch":"master","last_synced_at":"2025-05-16T19:08:03.758Z","etag":null,"topics":["bluetooth","bluetooth-low-energy","embedded","gatt","l2cap","swift"],"latest_commit_sha":null,"homepage":"http://pureswift.github.io/Bluetooth/","language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/PureSwift.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"ko_fi":"colemancda"}},"created_at":"2016-04-02T01:45:12.000Z","updated_at":"2025-05-12T16:20:42.000Z","dependencies_parsed_at":"2025-01-15T06:04:41.713Z","dependency_job_id":"d5f05cd8-9d5c-4bf9-8b23-ba7be70d67ee","html_url":"https://github.com/PureSwift/Bluetooth","commit_stats":{"total_commits":1758,"total_committers":8,"mean_commits":219.75,"dds":"0.21786120591581337","last_synced_commit":"1a384d876244e546e561ea37b5aba4957205f8b8"},"previous_names":[],"tags_count":104,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PureSwift%2FBluetooth","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PureSwift%2FBluetooth/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PureSwift%2FBluetooth/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PureSwift%2FBluetooth/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/PureSwift","download_url":"https://codeload.github.com/PureSwift/Bluetooth/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254592395,"owners_count":22097013,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bluetooth","bluetooth-low-energy","embedded","gatt","l2cap","swift"],"created_at":"2024-11-11T01:15:54.657Z","updated_at":"2025-05-16T19:08:37.176Z","avatar_url":"https://github.com/PureSwift.png","language":"Swift","readme":"![Bluetooth](https://github.com/PureSwift/Bluetooth/raw/master/Assets/PureSwiftBluetooth.png)\n\n[![Swift][swift-badge]][swift-url]\n[![Platform][platform-badge]][platform-url]\n[![Release][release-badge]][release-url]\n[![License][mit-badge]][mit-url]\n\nBluetooth is a Swift package with multiple libraries supporting the Bluetooth SIG specifications and protocols, including GAP, GATT, HCI, L2CAP, Classic (BR/EDR) and Low Energy support.\n\n## Usage\n\n```swift\nimport Bluetooth\n\nlet uuid128bit = BluetoothUUID(rawValue: \"60F14FE2-F972-11E5-B84F-23E070D5A8C7\")\nlet uuid16bit = BluetoothUUID(rawValue: \"FEA9\")\nlet address = BluetoothAddress(rawValue: \"00:1A:7D:DA:71:13\")\n```\n\n## Installation \n\nBluetooth is available as a Swift Package Manager package. To use it, add the following dependency in your `Package.swift`:\n\n```swift\n.package(url: \"https://github.com/PureSwift/Bluetooth.git\", branch: \"master\"),\n```\n\nand to your target, add `Bluetooth` to your dependencies. You can then `import Bluetooth` to get access to Bluetooth functionality.\n\n## Platforms\n\nSupport for different operating systems and platforms is spread across a suite of Swift packages supporting each which all depend on this package as a foundation. It currently supports WebAssembly (Chrome, Edge), Android, Embedded Swift, desktop Linux (Debian, Fedora, Arch), Buildroot and Yocto Linux.\n\n| Platform | Roles | Backend | Library |\n| ---- | -------- | --- | ----------- | \n| macOS, iOS, watchOS, tvOS, visionOS | Central, Peripheral | [CoreBluetooth](https://developer.apple.com/documentation/corebluetooth) | [DarwinGATT](https://github.com/PureSwift/GATT) |\n| Linux | Central, Peripheral | [BlueZ](https://www.bluez.org) | [BluetoothLinux](https://github.com/PureSwift/BluetoothLinux), [GATT](https://github.com/PureSwift/GATT)\n| Android | Central | [Java Native Interface](https://developer.android.com/training/articles/perf-jni) | [AndroidBluetooth](https://github.com/PureSwift/AndroidBluetooth)\n| WebAssembly | Central | [Bluetooth Web API](https://developer.mozilla.org/en-US/docs/Web/API/Web_Bluetooth_API) | [BluetoothWeb](https://github.com/PureSwift/BluetoothWeb)\n| Pi Pico W | Peripheral | [BlueKitchen BTStack](https://bluekitchen-gmbh.com/btstack/#quick_start/index.html) | [BTStack](https://github.com/MillerTechnologyPeru/BTStack)\n| ESP32 | Peripheral | [Apache NimBLE](https://mynewt.apache.org/latest/network/index.html) | [NimBLE](https://github.com/MillerTechnologyPeru/NimBLE)\n| nRF52840 | Peripheral | [Zephyr SDK](https://zephyrproject.org) | [Zephyr](https://github.com/MillerTechnologyPeru/Zephyr-Swift)\n\n## Documentation\n\nRead the documentation [here](http://pureswift.github.io/Bluetooth/documentation/bluetooth/).\nDocumentation can be generated with [DocC](https://github.com/apple/swift-docc).\n\nLicense\n-------\n\n**Bluetooth** is released under the MIT license. See LICENSE for details.\n\n[swift-badge]: https://img.shields.io/badge/swift-6.0-F05138.svg \"Swift 6.0\"\n[swift-url]: https://swift.org\n[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\n[platform-url]: https://swift.org\n[mit-badge]: https://img.shields.io/badge/License-MIT-blue.svg?style=flat\n[mit-url]: https://tldrlegal.com/license/mit-license\n[build-status-badge]: https://github.com/PureSwift/Bluetooth/workflows/Swift/badge.svg\n[build-status-url]: https://github.com/PureSwift/Bluetooth/actions\n[release-badge]: https://img.shields.io/github/release/PureSwift/Bluetooth.svg\n[release-url]: https://github.com/PureSwift/Bluetooth/releases\n[docs-url]: http://pureswift.github.io/Bluetooth/documentation/bluetooth/\n","funding_links":["https://ko-fi.com/colemancda"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpureswift%2Fbluetooth","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpureswift%2Fbluetooth","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpureswift%2Fbluetooth/lists"}