I am trying to interact with Bluez 5.44 using the dbus-send
command line tool. I cannot seem to get it to start discovery properly, although it works fine when I use bluetoothctl
's scan on
and scan off
commands. I can also start and stop discovery using d-feet
.
I've tried powering off and on prior to issuing the command, but it doesn't seem to get discovery started.
The command line I'm using is:
dbus-send --system --type=method_call --print-reply --dest=org.bluez \
/org/bluez/hci0 \
org.bluez.Adapter1.StartDiscovery
What I usually get upon issuing this command is from dbus-monitor
is that the Discovering
property is false
.
For reference, this is what d-feet
shows.
What am I doing wrong with this command?