basnijholt / miflora

☘️🌑🌼πŸ₯€πŸ‘ Mi Flora Plant sensor Python package
MIT License
363 stars 98 forks source link

Example output from gatttool? #26

Closed AnderssonPeter closed 7 years ago

AnderssonPeter commented 7 years ago

Could you give me a example of the output from gatttool?

gatttool --device=[MAC] --char-write-req -a 0x33 -n A01F --adapter=hci0
gatttool --device=[MAC] --char-read -a 0x03 --adapter=hci0
gatttool --device=[MAC] --char-read -a 0x35 --adapter=hci0 
gatttool --device=[MAC] --char-read -a 0x038 --adapter=hci0
AnderssonPeter commented 7 years ago

If any one else ever need this here it is:

gatttool --device=C4:7C:8D:62:D3:19 --char-write-req -a 0x33 -n A01F
Characteristic value was written successfully
gatttool --device=C4:7C:8D:62:D3:19 --char-read -a 0x03
Characteristic value/descriptor: 46 6c 6f 77 65 72 20 63 61 72 65
gatttool --device=C4:7C:8D:62:D3:19 --char-read -a 0x35
Characteristic value/descriptor: aa bb cc dd ee ff 99 88 77 66 00 00 00 00 00 00 
gatttool --device=C4:7C:8D:62:D3:19 --char-read -a 0x038
Characteristic value/descriptor: 5b 15 32 2e 37 2e 30