mirror of
https://github.com/kawasaki/pyscrlink.git
synced 2025-09-05 01:00:23 +02:00
BLESession: Extend scan time
It was reported that the LEGO Boost brick connection needs 2 attempts. The cause could be too short scan time. Extend the scan time from 1 second to 10 seconds. Signed-off-by: Shin'ichiro Kawasaki <kawasaki@juno.dti.ne.jp>
This commit is contained in:
@@ -496,7 +496,7 @@ class BLESession(Session):
|
||||
if self.status == self.INITIAL and method == 'discover':
|
||||
scanner = Scanner()
|
||||
try:
|
||||
devices = scanner.scan(1.0)
|
||||
devices = scanner.scan(10.0)
|
||||
for dev in devices:
|
||||
if self.matches(dev, params['filters']):
|
||||
self.found_devices.append(dev)
|
||||
|
Reference in New Issue
Block a user