From: Marco Trapanese <marcotrapanese@gmail.com>
To: "linux-bluetooth@vger.kernel.org" <linux-bluetooth@vger.kernel.org>
Subject: Programmatically change bluetooth profiles
Date: Wed, 5 Oct 2016 07:19:56 +0200 [thread overview]
Message-ID: <ee18cede-d567-eb86-f6bd-241aaf2875e3@gmail.com> (raw)
Hello,
I'm working with bluez 5.40 on RPi3 with Raspbian Jessie Lite.
I set up my own GATT server (handled in Qt5) so the users can write a
characteristic which their preferences about bluetooth profiles.
In detail, I'm interested to enable/disable "on-the-fly" the A2DP and
HFP profiles.
I wonder how to do this from C++ or even from command line.
Of course I MUST avoid to restart the bluetooth service because I need
to keep the GATT server running.
Right now I only know the class value in /etc/bluetooth/main.conf
(currently is set to 0x0c0408). But I'm looking for something better...
Any suggestion?
Thanks
Marco
reply other threads:[~2016-10-05 5:19 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=ee18cede-d567-eb86-f6bd-241aaf2875e3@gmail.com \
--to=marcotrapanese@gmail.com \
--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).