Connection handler and btmgmt/bluetoothctl

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

 



Hi,

I am implementing my own GATT server using the "tool/gatt-service.c" as example. Create services and read/write characteristics is not a problem, but I need a way to track connection and disconnection of clients. Is there any way to make a handler or callback function that trigger when a client connects/disconnects to my server?


Another question about best practice. For the moment I use "btmgmt" to configure my daemon. However, the "bluetoothctl" binary seems to be a more stable alternative except that i cannot find any way to do the "le on" command as in "btmgmt".
Is there any way to activate the low energy option with bluetoothctl?

Regards,

Clément.
--
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