Skip to content

Commit 305a4bb

Browse files
committed
test
1 parent 0fa6690 commit 305a4bb

1 file changed

Lines changed: 1 addition & 11 deletions

File tree

scripts/bluethoot_auto/bluethootconnect.sh

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -21,19 +21,9 @@ while read -r line; do
2121
bluetoothctl remove "$mac"
2222
bluetoothctl -t 8 scan on &
2323
scan_pid=$!
24-
sleep 4
24+
sleep 7
2525
kill "$scan_pid" 2>/dev/null
2626

27-
echo "⏳ Recherche de l'appareil..."
28-
# Attend jusqu'à ce que l'appareil soit détecté (max 20 s)
29-
for i in $(seq 1 20); do
30-
if bluetoothctl devices | grep -q "$mac"; then
31-
echo "✅ Appareil détecté ($mac)"
32-
break
33-
fi
34-
sleep 1
35-
done
36-
3727
bluetoothctl pair "$mac"
3828
sleep 1
3929
bluetoothctl trust "$mac"

0 commit comments

Comments
 (0)