GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - PureSwift/Bluetooth: Swift Bluetooth library

BranchesTags
Open more actions menu

Latest commit

 

History

2,419 Commits
2,419 Commits

Folders and files

NameName
Last commit message
Last commit date
.devcontainer
.devcontainer
 
 
.github
.github
 
 
Assets
Assets
 
 
Conformance
Conformance
 
 
Plugins/GenerateBluetoothDefinitions
Plugins/GenerateBluetoothDefinitions
 
 
Scripts
Scripts
 
 
Sources
Sources
 
 
Tests
Tests
 
 
cmake
cmake
 
 
.editorconfig
.editorconfig
 
 
.gitignore
.gitignore
 
 
.gitlab-ci.yml
.gitlab-ci.yml
 
 
.swift-format
.swift-format
 
 
.swiftlint.yml
.swiftlint.yml
 
 
CMakeLists.txt
CMakeLists.txt
 
 
LICENSE
LICENSE
 
 
Package.swift
Package.swift
 
 
README.md
README.md
 
 

Repository files navigation

Bluetooth

Swift Platform Release License

Bluetooth 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.

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

Bluetooth is available as a Swift Package Manager package. To use it, add the following dependency in your Package.swift:

.package(url: "https://github.com/PureSwift/Bluetooth.git", branch: "master"),

and to your target, add Bluetooth to your dependencies. You can then import Bluetooth to get access to Bluetooth functionality.

Platforms

Support 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.

Platform Roles Backend Library
macOS, iOS, watchOS, tvOS, visionOS Central, Peripheral CoreBluetooth DarwinGATT
Linux Central, Peripheral BlueZ BluetoothLinux, GATT
Android Central Java Native Interface AndroidBluetooth
WebAssembly Central Bluetooth Web API BluetoothWeb
Pi Pico W Peripheral BlueKitchen BTStack BTStack
ESP32 Peripheral Apache NimBLE NimBLE
nRF52840 Peripheral Zephyr SDK Zephyr

Documentation

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

License

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

About

Swift Bluetooth library

pureswift.github.io/Bluetooth/

Topics

bluetoothbluetooth-low-energyembeddedgattl2capswift

Resources

Readme
MIT license
Activity
Custom properties

Stars

234 stars

Watchers

11 watching

Forks

32 forks
Report repository

Releases

Sponsor this project

Used by

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.