OpenBluetoothToolbox / SimpleBLE

SimpleBLE - the all-in-one Bluetooth library for MacOS, iOS, Windows, Linux and Android.
https://www.simpleble.org
Other
655 stars 110 forks source link

MacOS Bluetooth no perm masked as Bluetooth disabled #242

Open fughilli opened 1 year ago

fughilli commented 1 year ago

https://github.com/OpenBluetoothToolbox/SimpleBLE/blob/a567f791339396885b3d50c35c410160b69147e7/simpleble/src/backends/macos/AdapterBaseMacOS.mm#L21

This implementation masks permissions issues as Bluetooth being disabled on MacOS. There should probably be two separate accessors that expose permissions/enablement separately, such that higher layers can report more accurate error codes.