* BlueZ 5 : Tool recommendation for scripts
@ 2015-11-05 15:04 tony
0 siblings, 0 replies; only message in thread
From: tony @ 2015-11-05 15:04 UTC (permalink / raw)
To: linux-bluetooth@vger.kernel.org
Hi All,
What is the recommended BlueZ 5 tool to connect a device from scripts?
'bluetoothctl' is very good in interactive mode. I tried using 'hcitool'
+ 'simple-agent'. But they do not seem to detect device unless a scan is
initiated from 'bluetoothctl' first.
hcitool scan does scan and find devices. But simple-agent returns
Exception: Bluetooth device not found.
bluetoothctl commands which does not take much time could be run from
scripts.
eg:
#!/bin/bash
bluetoothctl << EOF
power on
EOF
But starting a scan does not work, because it exits before the scan is
complete.
Many Thanks,
Tony
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2015-11-05 15:04 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-11-05 15:04 BlueZ 5 : Tool recommendation for scripts tony
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).