5. API - Core Bluetooth LE Roles
5.1. Advertiser Role
- class bleson.core.roles.Advertiser(adapter: bleson.interfaces.adapter.Adapter, advertisement=None, scan_response=None)
- start()
Start the role.
- stop()
Stop the role.
Note
macOS implementation note
You can only set the name and the services UUID’s, and the visibility of your advertisement data depends on your app being a foreground or background process.
See the CoreBluetooth documentation.
5.2. Observer Role
- class bleson.core.roles.Observer(adapter: bleson.interfaces.adapter.Adapter, on_advertising_data=None)
- start()
Start the observer
- stop()
Stop the role.