dfrankland / bluster

A Rust crate for implementing BLE (Bluetooth Low Energy) peripherals
https://crates.io/crates/bluster
MIT License
111 stars 33 forks source link

Not working on MacOS 10.15.3 #27

Open christopherhex opened 4 years ago

christopherhex commented 4 years ago

Hi,

I have a demo program using this library working on linux, but it fails on MacOS using CoreBluetooth. I get the following output:

peripheral_manager_did_update_state
CBManagerStatePoweredOn
peripheral_manager_did_add_service_error

As I'm new to Rust, not sure what steps I should/can take to debug.

Thanks in advance! (btw, working awesome on linux!)

enochc commented 3 years ago

This is still broken on MacOS 11.2.1 Assertion failure in -[CBPeripheralManager addService:], CBPeripheralManager.m:408

whitevegagabriel commented 1 year ago

Hi,

I have a demo program using this library working on linux, but it fails on MacOS using CoreBluetooth. I get the following output:

peripheral_manager_did_update_state
CBManagerStatePoweredOn
peripheral_manager_did_add_service_error

As I'm new to Rust, not sure what steps I should/can take to debug.

Thanks in advance! (btw, working awesome on linux!)

I think that peripheral_manager_did_add_service_error might just be a misleading log. It seems to always print, even if it does not always contain an error.

However, Assertion failure in -[CBPeripheralManager addService:], CBPeripheralManager.m:408 may be a real issue.

All of that to say, I am not experiencing these errors on 13.2.1 (arm64)