bluetooth - How to use gatttool non-interactive mode -


i want write gatttool in non-interactive mode.

$ sudo gatttool -i hci0 -b 78:a5:04:44:0a:57 -i [78:a5:04:44:0a:57][le]> connect attempting connect 78:a5:04:44:0a:57 connection successful [78:a5:04:44:0a:57][le]> char-write-cmd 0x0025 ff 

i'm changing color of light using bluetooth.

what equivalent using non-interactive mode? tried this, doesn't change color of light , stop must use ctrl+c. there no message @ all.

sudo gatttool -i hci0 -b 78:a5:04:44:0a:57 --char-write -a 0x0025 -n ff 

how can write command?

environment:

i'm using raspberry pi , rasbian.

the option not --char-write --char-write-req.

total command must be:

sudo gatttool -i hci0 -b 78:a5:04:44:0a:57 --char-write-req -a 0x0025 -n ff 

Comments

Popular posts from this blog

google chrome - Developer tools - How to inspect the elements which are added momentarily (by JQuery)? -

angularjs - Showing an empty as first option in select tag -

php - Cloud9 cloud IDE and CakePHP -