Advertisement
Guest User

Untitled

a guest
Nov 15th, 2019
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. set timeout 30
  2. spawn bluetoothctl
  3. expect "# "
  4. send "agent off\r"
  5. expect "?gistered"
  6. send "\r"
  7.  
  8. expect "# "
  9. send "agent NoInputNoOutput\r"
  10. expect "Agent registered"
  11. send "\r"
  12.  
  13. expect "# "
  14. send "default-agent\r"
  15. expect "Default agent request successful"
  16. send "\r"
  17.  
  18. expect "# "
  19. send "discoverable on\r"
  20.  
  21. expect "Authorize "
  22. send "yes\r"
  23. send "exit\r"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement