TheCellule / python-bleson

Python Bluetooth LE Module
https://groups.google.com/group/python-bleson
MIT License
118 stars 24 forks source link

Mac Advertiser #17

Closed WayneKeenan closed 6 years ago

WayneKeenan commented 6 years ago

Investigate OS overriding payload contents issue.

WayneKeenan commented 6 years ago

Bluetooth LE advertisements on macOS is not such an open season as it is on, say, Linux.

Apple imposes severe advertising restrictions and has also implemented vendor specific additions (e.g. for iOS clients) in order to work with/around them (!) For example, you can only set the device name and the service UUID's, and even then those items can get replaced when your app is not in the foreground.

Reference: https://developer.apple.com/library/content/documentation/NetworkingInternetWeb/Conceptual/CoreBluetooth_concepts/BestPracticesForSettingUpYourIOSDeviceAsAPeripheral/BestPracticesForSettingUpYourIOSDeviceAsAPeripheral.html