mirror of
https://github.com/google/bumble.git
synced 2026-05-09 04:08:02 +00:00
Merge pull request #590 from SergeantSerk/parse-scan-response-data
Correctly parse scan response from device config
This commit is contained in:
@@ -1542,6 +1542,10 @@ class DeviceConfiguration:
|
|||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
# 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)
|
# Load advertising interval (for backward compatibility)
|
||||||
if advertising_interval := config.pop('advertising_interval', None):
|
if advertising_interval := config.pop('advertising_interval', None):
|
||||||
self.advertising_interval_min = advertising_interval
|
self.advertising_interval_min = advertising_interval
|
||||||
|
|||||||
Reference in New Issue
Block a user