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

Re: Connection handler and btmgmt/bluetoothctl

flat view

From: Clément Jacquemin <hidden>
Date: 2016-09-11 21:46:06

Thanks for your answer Johan!

Le 13/07/2016 07:50, Johan Hedberg a écrit :
On Tue, Jul 12, 2016, Clément Jacquemin wrote:
quoted
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?
bluetoothctl talks to bluetoothd and bluetoothd already automatically
enables LE support whenever it's reported to be supported by the kernel.

Johan
I still have some questions.

First, is there any equivalent of the 'bt_gatt_server_send_notification' method from "src/shared/gatt-server.c" but with the GATT D-BUS API. I did not find anything about that.

Second, when one of my characteristic need more than 5 seconds to process the data, the client is systematically disconnect 5 seconds after requesting a read action on that characteristic. I suppose there is a timeout configuration somewhere, but where ?

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