All of lore.kernel.org
 help / color / mirror / Atom feed
* bluez: Disable GATT client at non-initiator side?
@ 2019-03-19 15:04 Yauhen Kharuzhy
  2019-03-19 20:21 ` Luiz Augusto von Dentz
  0 siblings, 1 reply; 3+ messages in thread
From: Yauhen Kharuzhy @ 2019-03-19 15:04 UTC (permalink / raw)
  To: linux-bluetooth

Hello,

I am trying to implement GATT services with bluez API.

If external device initiated LE connection to device with bluez
running, bluez start to discover services at initiator and, if one of
characteristics required pairing, request pairing. This is not
intended behaviour for some reason in my case, so I need to disable
GATT client if bluez is not initiator side of the connection, similar
to ReverseServiceDiscovery config option for non-LE.

Is it possible by any way? As i see code, device_attach_att() function
in src/device.c initializes GATT client unconditionally in both cases.
For debug, I disabled client initializing and this seems works for
external-initiated connections.

-- 
Yauhen Kharuzhy

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2019-03-20 11:25 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-03-19 15:04 bluez: Disable GATT client at non-initiator side? Yauhen Kharuzhy
2019-03-19 20:21 ` Luiz Augusto von Dentz
2019-03-20 11:25   ` Yauhen Kharuzhy

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.