Thread (4 messages) 4 messages, 2 authors, 2016-10-17

Connection handler and btmgmt/bluetoothctl

flat view

From: Clément Jacquemin <hidden>
Date: 2016-07-12 00:29:20

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.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help