All of lore.kernel.org
 help / color / mirror / Atom feed
From: Andrejs Hanins <andrejs.hanins@ubnt.com>
To: linux-bluetooth@vger.kernel.org
Subject: Notifications and CCC descriptor handling for Gatt server
Date: Fri, 07 Aug 2015 00:31:12 +0300	[thread overview]
Message-ID: <55C3D220.1040803@ubnt.com> (raw)

Hi,

	I have a Gatt server over D-Bus with "notify" characteristic exported and I listen to Start/StopNotify methods. But I can't get my head around the logic of Start/StopNotify methods in case of multiple Gatt clients connecting to the service (not in the same time, of course):
	1. Client A connects and enables notifications, StartNotify is called - this is fine.
	2. Client B connects and enables notifications, then StartNotify is called again - is it expected? Does it mean notifications state is per-client and external Gatt server needs to know the currently connected client and associate some state with it?
	3. Client A connects again and disables notifications, StopNotify is not called. This is strange and goes against the logic in item 2.
	4. Client B connects and disables notifications, StopNotify is called.

	So, how is it supposed to work? Maybe there is a bug somewhere?
	BlueZ 5.32 used.

BR, Andrey

             reply	other threads:[~2015-08-06 21:31 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-08-06 21:31 Andrejs Hanins [this message]
2015-08-09 15:13 ` Notifications and CCC descriptor handling for Gatt server Luiz Augusto von Dentz
2015-08-12  6:16   ` Andrejs Hanins

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=55C3D220.1040803@ubnt.com \
    --to=andrejs.hanins@ubnt.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.