From 49b2c13e69185204b1a781d66f62f7d094e74b3a Mon Sep 17 00:00:00 2001 From: Gilles Boccon-Gibod Date: Sun, 9 Apr 2023 17:57:11 -0700 Subject: [PATCH] only use 1M parameters by default --- bumble/device.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/bumble/device.py b/bumble/device.py index 72bbd631..74c1e30a 100644 --- a/bumble/device.py +++ b/bumble/device.py @@ -1611,7 +1611,7 @@ class Device(CompositeEventEmitter): pending connection. connection_parameters_preferences: (BLE only, ignored for BR/EDR) - * None: use all PHYs with default parameters + * None: use the 1M PHY with default parameters * map: each entry has a PHY as key and a ConnectionParametersPreferences object as value @@ -1680,9 +1680,7 @@ class Device(CompositeEventEmitter): if connection_parameters_preferences is None: if connection_parameters_preferences is None: connection_parameters_preferences = { - HCI_LE_1M_PHY: ConnectionParametersPreferences.default, - HCI_LE_2M_PHY: ConnectionParametersPreferences.default, - HCI_LE_CODED_PHY: ConnectionParametersPreferences.default, + HCI_LE_1M_PHY: ConnectionParametersPreferences.default } self.connect_own_address_type = own_address_type