mirror of
https://github.com/google/bumble.git
synced 2026-04-18 00:45:32 +00:00
Fix Lint error in VCP example
This commit is contained in:
@@ -24,12 +24,11 @@ import websockets
|
||||
import json
|
||||
|
||||
from bumble.core import AdvertisingData
|
||||
from bumble.device import Device
|
||||
from bumble.device import Device, AdvertisingParameters, AdvertisingEventProperties
|
||||
from bumble.hci import (
|
||||
CodecID,
|
||||
CodingFormat,
|
||||
OwnAddressType,
|
||||
HCI_LE_Set_Extended_Advertising_Parameters_Command,
|
||||
)
|
||||
from bumble.profiles.bap import (
|
||||
CodecSpecificCapabilities,
|
||||
@@ -154,11 +153,11 @@ async def main() -> None:
|
||||
+ csis.get_advertising_data()
|
||||
)
|
||||
|
||||
await device.start_extended_advertising(
|
||||
advertising_properties=(
|
||||
HCI_LE_Set_Extended_Advertising_Parameters_Command.AdvertisingProperties.CONNECTABLE_ADVERTISING
|
||||
await device.create_advertising_set(
|
||||
advertising_parameters=AdvertisingParameters(
|
||||
advertising_event_properties=AdvertisingEventProperties(),
|
||||
own_address_type=OwnAddressType.PUBLIC,
|
||||
),
|
||||
own_address_type=OwnAddressType.PUBLIC,
|
||||
advertising_data=advertising_data,
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user