mirror of
https://github.com/agessaman/meshcore-packet-capture.git
synced 2026-04-20 23:23:37 +00:00
add timeouts to install script and parameters to pairing
This commit is contained in:
parent
ff1b1bd8ca
commit
d3da26e3db
1 changed files with 3 additions and 2 deletions
|
|
@ -265,8 +265,9 @@ function Start-Installation {
|
|||
Write-Host "INFO: Scanning for BLE devices..." -ForegroundColor Blue
|
||||
|
||||
try {
|
||||
# Run the BLE scan helper
|
||||
# Run the BLE scan helper with delay
|
||||
$bleScanScript = Join-Path $InstallDir "ble_scan_helper.py"
|
||||
Write-Host "INFO: This may take 10-15 seconds..." -ForegroundColor Blue
|
||||
$scanResult = & python $bleScanScript 2>&1
|
||||
|
||||
if ($LASTEXITCODE -eq 0 -and $scanResult) {
|
||||
|
|
@ -329,7 +330,7 @@ function Start-Installation {
|
|||
|
||||
try {
|
||||
$blePairingScript = Join-Path $InstallDir "ble_pairing_helper.py"
|
||||
$pairingResult = & python $blePairingScript $script:SelectedBleDevice 2>&1
|
||||
$pairingResult = & python $blePairingScript $script:SelectedBleDevice $script:SelectedBleName 2>&1
|
||||
|
||||
if ($LASTEXITCODE -eq 0) {
|
||||
Write-Host "SUCCESS: BLE device paired successfully" -ForegroundColor Green
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue