CoreBluetooth Advertisement Module

API

class able.corebluetooth.advertisement.CBLEAdvertisement(advert_wrapper, local_name, *args, **kwargs)[source]

Simple class wrapper of the CoreBluetooth advertisementData dictionary For more information see: https://developer.apple.com/documentation/corebluetooth/cbperipheralmanager/1393252-startadvertising

Parameters

local_name (str) – The name you wish to include within advertisement packets as the local name, defaults to BLE Peripheral

add_manufacturer_data(manufacturer_id, manufacturer_data)[source]

Not implemented because Core Bluetooth does not support this functionality. See: https://developer.apple.com/documentation/corebluetooth/cbperipheralmanager/1393252-startadvertising

add_service_data(service_uuid, service_data)[source]

Not implemented because Core Bluetooth does not support this functionality. See: https://developer.apple.com/documentation/corebluetooth/cbperipheralmanager/1393252-startadvertising

Return type

None

add_service_uuid(service_uuid)[source]

Adds a service uuid to the advertisement object.

Parameters

service_uuid (Union[str, uuid.UUID]) – What service uuid should be added to this advertisement

Return type

None

Returns

None

async update_service_data(service_uuid, service_data)[source]

Not implemented because Core Bluetooth does not support this functionality. See: https://developer.apple.com/documentation/corebluetooth/cbperipheralmanager/1393252-startadvertising

Return type

None