forked from auracaster/bumble_mirror
format
This commit is contained in:
@@ -1946,9 +1946,7 @@ class Device(CompositeEventEmitter):
|
|||||||
|
|
||||||
@property
|
@property
|
||||||
def supports_le_extended_advertising(self):
|
def supports_le_extended_advertising(self):
|
||||||
return self.supports_le_features(
|
return self.supports_le_features(LeFeatureMask.LE_EXTENDED_ADVERTISING)
|
||||||
LeFeatureMask.LE_EXTENDED_ADVERTISING
|
|
||||||
)
|
|
||||||
|
|
||||||
async def start_advertising(
|
async def start_advertising(
|
||||||
self,
|
self,
|
||||||
|
|||||||
@@ -42,7 +42,7 @@ async def main() -> None:
|
|||||||
await device.power_on()
|
await device.power_on()
|
||||||
|
|
||||||
if not device.supports_le_extended_advertising:
|
if not device.supports_le_extended_advertising:
|
||||||
print("Device does not support extended adverising")
|
print("Device does not support extended advertising")
|
||||||
return
|
return
|
||||||
|
|
||||||
print("Max advertising sets:", device.host.number_of_supported_advertising_sets)
|
print("Max advertising sets:", device.host.number_of_supported_advertising_sets)
|
||||||
|
|||||||
Reference in New Issue
Block a user