Linux bluetooth development
 help / color / mirror / Atom feed
* Battery1 vs. GATT reporting
@ 2022-02-28 14:15 Ed Beroset
  2022-02-28 18:31 ` Sonny Sasaka
  2022-02-28 18:44 ` Luiz Augusto von Dentz
  0 siblings, 2 replies; 9+ messages in thread
From: Ed Beroset @ 2022-02-28 14:15 UTC (permalink / raw)
  To: linux-bluetooth

In 
https://git.kernel.org/pub/scm/bluetooth/bluez.git/commit/?id=713f6f09 a 
flag named "external" was added which, if I'm understanding correctly, 
is supposed to mark the Battery1 profile as safe to also share via GATT. 
  However, I was recently working on an application that relies on the 
GATT API for battery power and found that it only seemed to work as 
expected (reporting via both) if I set the flag to false rather than 
true as in the commit.  I looked through the code and it all looks 
correct, but my observation indicates that perhaps the sense of the flag 
is somehow inverted.

Here's the project I was working on, with the relevant bug report.
https://github.com/AsteroidOS/libasteroid/issues/13

So can someone verify that:
1. the interface is intended to be shared via GATT and Battery1
2. that it does not work that way today

Ed


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

end of thread, other threads:[~2022-05-17 21:29 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-02-28 14:15 Battery1 vs. GATT reporting Ed Beroset
2022-02-28 18:31 ` Sonny Sasaka
2022-03-01 14:32   ` Ed Beroset
2022-03-01 15:43     ` Sonny Sasaka
2022-03-01 16:01       ` Ed Beroset
2022-03-02 15:33         ` Ed Beroset
2022-05-17 21:24           ` Ed Beroset
2022-05-17 21:29             ` Sonny Sasaka
2022-02-28 18:44 ` Luiz Augusto von Dentz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox