dbus调试获得adapter path方法

adapter=`dbus-send --print-reply --system --dest=org.bluez / \
    org.bluez.Manager.DefaultAdapter | awk -F\" '/bluez/ { print $2 }'`
dbus-send --system --dest=org.bluez --print-reply --type=method_call \
    $adapter org.bluez.Adapter.GetProperties

你可能感兴趣的:(dbus调试获得adapter path方法)