Skip to content

Commit

Permalink
Correctly parse scan response from device config
Browse files Browse the repository at this point in the history
Parses scan response data correctly just like advertising data
  • Loading branch information
SergeantSerk committed Nov 7, 2024
1 parent a060a70 commit d0990ee
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions bumble/device.py
Original file line number Diff line number Diff line change
Expand Up @@ -1660,6 +1660,10 @@ def load_from_dict(self, config: Dict[str, Any]) -> None:
)
)

# Load scan response data
if scan_response_data := config.pop('scan_response_data', None):
self.scan_response_data = bytes.fromhex(scan_response_data)

# Load advertising interval (for backward compatibility)
if advertising_interval := config.pop('advertising_interval', None):
self.advertising_interval_min = advertising_interval
Expand Down

0 comments on commit d0990ee

Please sign in to comment.