QDBus: how to retreive object path



  • Hello, I'm trying to implement some function of AVRCP protocol. Here the documentation:

    http://git.kernel.org/cgit/bluetooth/bluez.git/tree/doc/media-api.txt

    what I don't understand is how to retreive the object path of my player:

    Object path [variable prefix]/{hci0,hci1,...}/dev_XX_XX_XX_XX_XX_XX/playerX

    I'm not sure if it is returned from some DBus methods or I have to manually build it using the bluetooth address and the local device.


  • Qt Champions 2016

    @Mark81
    Hi,

    I'm not sure if it is returned from some DBus methods or I have to manually build it using the bluetooth address and the local device.

    It is not, you have to handle it manually. From what I can discern from your link it's a path you construct out of device names. If the service is compliant you can usually list the objects it exposes.

    Kind regards.


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.