Advertisement
Guest User

Untitled

a guest
Feb 22nd, 2019
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. #/bash/bin
  2. sudo gatttool -b 80:EA:CA:00:00:03 -I
  3. # All these commands are typed in interactive mode
  4. connect
  5. while [ 1 ]; do
  6. char_read_hnd 0x0030 > a.txt
  7. done
  8. exit 1
  9.  
  10. sudo gatttool -b 80:EA:CA:00:00:03 -I <<EOF
  11. # All these commands are entered in interactive mode
  12. connect
  13. while [ 1 ]; do
  14. char_read_hnd 0x0030 > a.txt
  15. done
  16. exit 1
  17. EOF
  18.  
  19. gatttool -i hci0 -b device=MAC --char-write-req -a handle=0x0001 -n value=0x0001
  20.  
  21. gatttool -i hci0 -b device=MAC --char-read -a handle=0x0001
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement