Skip to content

Commit

Permalink
adapt scanning and connection parameters type
Browse files Browse the repository at this point in the history
  • Loading branch information
markusjellitsch authored Jan 23, 2025
1 parent af466c2 commit 54d961b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions bumble/device.py
Original file line number Diff line number Diff line change
Expand Up @@ -1296,8 +1296,8 @@ def __str__(self) -> str:
@dataclass
class ConnectionParametersPreferences:
default: ClassVar[ConnectionParametersPreferences]
connection_interval_min: int = DEVICE_DEFAULT_CONNECTION_INTERVAL_MIN
connection_interval_max: int = DEVICE_DEFAULT_CONNECTION_INTERVAL_MAX
connection_interval_min: float = DEVICE_DEFAULT_CONNECTION_INTERVAL_MIN
connection_interval_max: float = DEVICE_DEFAULT_CONNECTION_INTERVAL_MAX
max_latency: int = DEVICE_DEFAULT_CONNECTION_MAX_LATENCY
supervision_timeout: int = DEVICE_DEFAULT_CONNECTION_SUPERVISION_TIMEOUT
min_ce_length: int = DEVICE_DEFAULT_CONNECTION_MIN_CE_LENGTH
Expand Down Expand Up @@ -2858,8 +2858,8 @@ async def start_scanning(
self,
legacy: bool = False,
active: bool = True,
scan_interval: int = DEVICE_DEFAULT_SCAN_INTERVAL, # Scan interval in ms
scan_window: int = DEVICE_DEFAULT_SCAN_WINDOW, # Scan window in ms
scan_interval: float = DEVICE_DEFAULT_SCAN_INTERVAL, # Scan interval in ms
scan_window: float = DEVICE_DEFAULT_SCAN_WINDOW, # Scan window in ms
own_address_type: int = hci.OwnAddressType.RANDOM,
filter_duplicates: bool = False,
scanning_phys: Sequence[int] = (hci.HCI_LE_1M_PHY, hci.HCI_LE_CODED_PHY),
Expand Down

0 comments on commit 54d961b

Please sign in to comment.