PureSwift / BluetoothLinux

Pure Swift Linux Bluetooth Stack
MIT License
184 stars 30 forks source link

LE Scan #14

Closed colemancda closed 6 years ago

colemancda commented 8 years ago

Implement LE Scan. First step is to implement the "LE Set Scan Enable Command" PDU.

Reference the Bluetooth Core Specification v4.0 page 823 (7.8.11 LE Set Scan Enable Command)

semireg commented 7 years ago

Has any progress been made on this? If not, I'd like to give it a shot. I've successfully built this project on an Ubuntu VM. Is it possible to build on MacOS using the dongle connected to the Mac? Having a native Xcode environment would certainly speed up development. This is what I'm seeing today when I run swift build on MacOS.

BluetoothLinux-master/Sources/BluetoothLinux/POSIXError.swift:34:39: error: use of unresolved identifier 'NSPOSIXErrorDomain'
        let nsError = NSError(domain: NSPOSIXErrorDomain, code: Int(code.rawValue), userInfo: nil)
                                      ^~~~~~~~~~~~~~~~~~
Foundation.NSPOSIXErrorDomain:1:12: note: did you mean 'NSPOSIXErrorDomain'?
public let NSPOSIXErrorDomain: String
           ^
<unknown>:0: error: build had 1 command failures
colemancda commented 7 years ago

I use Parallels and compile on Ubuntu, and edit on Mac in Xcode. Only Bluetooth will compile on Mac, the SPM support is for Linux only.

colemancda commented 6 years ago

@semireg Implemented in v2.5.0