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" send "scan on\r"
expect "${MAC}" expect "${MAC}"
send "pair ${MAC}\r" send "pair ${MAC}\r"
expect "Enter PIN code" expect {
send "0000\r" "Enter PIN code" {
send "0000\r"
}
"Confirm passkey" {
send "yes\r"
}
}
expect "Pairing successful" expect "Pairing successful"
send "trust ${MAC}\r" send "trust ${MAC}\r"
expect "trust succeeded" expect "trust succeeded"