first implementation (+1 squashed commit)

Squashed commits:
[ee00d67] wip
This commit is contained in:
Gilles Boccon-Gibod
2023-10-29 08:43:39 -07:00
parent e08c84dd20
commit f9f5d7ccbd
56 changed files with 2109 additions and 26 deletions
+9
View File
@@ -28,12 +28,16 @@ from bumble.pairing import OobData, PairingDelegate, PairingConfig
from bumble.smp import OobContext, OobLegacyContext
from bumble.smp import error_name as smp_error_name
from bumble.keys import JsonKeyStore
<<<<<<< HEAD
from bumble.core import (
AdvertisingData,
ProtocolError,
BT_LE_TRANSPORT,
BT_BR_EDR_TRANSPORT,
)
=======
from bumble.core import ProtocolError, BT_LE_TRANSPORT, BT_BR_EDR_TRANSPORT
>>>>>>> e3de14f (first implementation (+1 squashed commit))
from bumble.gatt import (
GATT_DEVICE_NAME_CHARACTERISTIC,
GATT_GENERIC_ACCESS_SERVICE,
@@ -394,9 +398,14 @@ async def pair(
print(color(f'=== Connecting to {address_or_name}...', 'green'))
connection = await device.connect(
address_or_name,
<<<<<<< HEAD
transport=BT_LE_TRANSPORT if mode == 'le' else BT_BR_EDR_TRANSPORT,
)
pairing_failure = False
=======
transport=(BT_LE_TRANSPORT if mode == 'le' else BT_BR_EDR_TRANSPORT),
)
>>>>>>> e3de14f (first implementation (+1 squashed commit))
if not request:
try: