linux-bluetooth.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Luiz Augusto von Dentz <luiz.dentz@gmail.com>
To: Edward Fung <jjsheepman@gmail.com>
Cc: "linux-bluetooth@vger.kernel.org" <linux-bluetooth@vger.kernel.org>
Subject: Re: Setting up GATT server using bluetoothctl tool
Date: Thu, 11 Jul 2019 11:41:28 +0300	[thread overview]
Message-ID: <CABBYNZKH1ufS+-xptzsXDO8Q3JQEk=kAQiG6OA8-xyy8eWO-ow@mail.gmail.com> (raw)
In-Reply-To: <CAK_dC=N1qN-OqM=fCTWmX=jmjntiGoTAchwJAbGWeC6nx9kk9g@mail.gmail.com>

Hi Edward,

On Tue, Jul 9, 2019 at 2:15 AM Edward Fung <jjsheepman@gmail.com> wrote:
>
> Hello team,
>
> I'm able to set up a few service/characteristic combinations with the
> latest bluetoothctl tool using the following commands:
>
> register-service
> register-characteristic
> register-application
>
> I was just wondering if there is a way to define GATT-based service
> for use only over the BR/EDR transport or LE transport using the
> bluetoothctl tool or any Bluez utility tool? Can anyone shed some
> light on this? Thanks.

There is a single instance of the database, therefore we can't really
have service declared on a per bearer basis, what you should be able
to do is detect what bearer is in use and then return accordingly, we
can however introduce permission to restrict access on a per bearer
basis but this further complicates the usage of these APIs.

-- 
Luiz Augusto von Dentz

      reply	other threads:[~2019-07-11  8:41 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-07-08 17:00 Setting up GATT server using bluetoothctl tool Edward Fung
2019-07-11  8:41 ` Luiz Augusto von Dentz [this message]

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='CABBYNZKH1ufS+-xptzsXDO8Q3JQEk=kAQiG6OA8-xyy8eWO-ow@mail.gmail.com' \
    --to=luiz.dentz@gmail.com \
    --cc=jjsheepman@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).