Updated unit tests
Pure Swift Bluetooth Stack for Linux
Does not require BlueZ userland library, communicates directly with the Linux kernel Bluetooth subsystem.
import Bluetooth import BluetoothLinux guard let hostController = await BluetoothLinux.HostController.default else { fatalError("No Bluetooth adapters found") } let uuid = UUID(rawValue: "E2C56DB5-DFFB-48D2-B060-D0F5A71096E0")! let beacon = AppleBeacon(uuid: uuid, major: 1, minor: 1, rssi: -29) do { try await hostController.iBeacon(beacon) } catch { print("Error enabling iBeacon: \(error)") }
import PackageDescription let package = Package( dependencies: [ .package( url: "https://github.com/PureSwift/BluetoothLinux.git", .branch("master") ) ] )
Read the documentation here. Documentation can be generated with DocC.
BluetoothLinux is released under the MIT license. See LICENSE for details.
版权所有:中国计算机学会技术支持:开源发展技术委员会 京ICP备13000930号-9 京公网安备 11010802032778号
Pure Swift Bluetooth Stack for Linux
Does not require BlueZ userland library, communicates directly with the Linux kernel Bluetooth subsystem.
Usage
Installation
Swift Package Manager
Documentation
Read the documentation here. Documentation can be generated with DocC.
See Also
License
BluetoothLinux is released under the MIT license. See LICENSE for details.