Some pointers how to use GattProfile1

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi all

Can you give me a quick example with a pseudo code (or using qdbus) for  workflow steps how to setup an auto connect to a device that supports given UUID service (0000180f-0000-1000-8000-00805f9b34fb - Battery Service)

>From what I understand all I need to do is send a call to the sytembus to register the hci0 adapter to auto connect

org.bluez.ProfileManager1.RegisterProfile , /org/bluez/Test (ObjPath), "00001802-0000-1000-8000-00805f9b34fb” (service UUID)

and if the discovery finds a device with such service it should auto connect right ?


I am not sure what is the ObjPath parameter for and when i introspect I don’t even see the /org/bluez/GattProfile1

I am using bluez Version 5.45 on a Raspberry Pi zero
Linux 4.4.50+   armv6l


I tried making the call using with gdbus, but couldn’t figure out how to structure the  osa{sv} 
also tried dbus-send , but the tool doesn’t seem to support this structures as well

I would really appreciate some pointers.--
To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Bluez Devel]     [Linux Wireless Networking]     [Linux Wireless Personal Area Networking]     [Linux ATH6KL]     [Linux USB Devel]     [Linux Media Drivers]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux