-
Notifications
You must be signed in to change notification settings - Fork 183
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Not working on macOS High Sierra #58
Comments
Same here |
Same in Noble |
One of the reasons why it might fail is that Apple switched from And here We explicitly connect to |
And therefore state event changed from 6 to 4 https://github.com/currantlabs/ble/blob/master/darwin/device.go#L19 |
Ok, I made it work evtStateChanged = 4 https://github.com/currantlabs/ble/blob/master/darwin/device.go#L19 d.pm = xpc.XpcConnect("com.apple.bluetoothd", d)
d.cm = xpc.XpcConnect("com.apple.bluetoothd", d) https://github.com/currantlabs/ble/blob/master/darwin/device.go#L80 I think we could come up with some kind of |
I tried with that changes, with and without sudo, and it says
without showing any device (and there are ~320 devices BLE that I can see with the Apple Bluetooth Explorer) What am I doing wrong? |
This PR from Noble appears to have added the new XPC API calls needed for High Sierra: The https://github.com/go-ble/ble fork of ble seems like has some work in this area... @moogle19 can you please fill us in on what you are up to, and how we can help? |
For anyone interested, please check out go-ble#3 |
@deadprogram I will try to test it this week. |
@deadprogram did you guys change public API? |
@deadprogram and btw, is |
@moogle19 made a change to the API related to From what I can tell, it is a more active fork and hence why I have mostly moved to it. I guess it is the new "main" fork? |
@deadprogram Ok, I will try to move to it and see how it works on High Sierra. |
@deadprogram it works! |
…om-tempfix re-adding log to hci.go
Hi there,
I know that macOS High Sierra was released just few days ago, but just wanted to warn those of you who develop on Mac.
That's what I'm getting from the lib in console:
The text was updated successfully, but these errors were encountered: