Updating the TH-D74 expect script to allow multiple responses to the pair command

This commit is contained in:
William McKeehan
2025-01-18 19:41:51 -05:00
parent 105142cf90
commit a2359bd33a
+8 -2
View File
@@ -155,8 +155,14 @@ expect "Changing power on succeeded"
send "scan on\r"
expect "${MAC}"
send "pair ${MAC}\r"
expect "Enter PIN code"
send "0000\r"
expect {
"Enter PIN code" {
send "0000\r"
}
"Confirm passkey" {
send "yes\r"
}
}
expect "Pairing successful"
send "trust ${MAC}\r"
expect "trust succeeded"