SHARE
TWEET

Untitled

a guest Feb 22nd, 2019 62 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top