From: "Clément Jacquemin" <clement.jacquemin@epita.fr>
To: <linux-bluetooth@vger.kernel.org>
Subject: Connection handler and btmgmt/bluetoothctl
Date: Tue, 12 Jul 2016 02:29:20 +0200 [thread overview]
Message-ID: <578439E0.5080703@epita.fr> (raw)
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.
next reply other threads:[~2016-07-12 0:29 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-07-12 0:29 Clément Jacquemin [this message]
2016-07-13 5:50 ` Connection handler and btmgmt/bluetoothctl Johan Hedberg
2016-09-11 21:46 ` Clément Jacquemin
2016-10-17 23:37 ` Clément Jacquemin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=578439E0.5080703@epita.fr \
--to=clement.jacquemin@epita.fr \
--cc=linux-bluetooth@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).