Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #/bash/bin
- sudo gatttool -b 80:EA:CA:00:00:03 -I
- # All these commands are typed in interactive mode
- connect
- while [ 1 ]; do
- char_read_hnd 0x0030 > a.txt
- done
- exit 1
- sudo gatttool -b 80:EA:CA:00:00:03 -I <<EOF
- # All these commands are entered in interactive mode
- connect
- while [ 1 ]; do
- char_read_hnd 0x0030 > a.txt
- done
- exit 1
- EOF
- gatttool -i hci0 -b device=MAC --char-write-req -a handle=0x0001 -n value=0x0001
- gatttool -i hci0 -b device=MAC --char-read -a handle=0x0001
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement