* Call to GattManager1.RegisterApplication times out
@ 2019-02-02 0:02 David Frey
0 siblings, 0 replies; only message in thread
From: David Frey @ 2019-02-02 0:02 UTC (permalink / raw)
I am trying to write a battery service
that runs in BlueZ to expose the battery level of a device over BLE.
The application that I have written is available here:
I'm new to GLib/GIO/GObject, so trying to get this working has been
pretty overwhelming due to the complexity of that stack.
I have a USB Bluetooth adapter which is recognized by BlueZ 5.50 that's
running on my computer. When I run my program, this is the output I get:
Starting fake battery service!
Found object: /org/bluez/hci0 which implements org.bluez.GattManager1
Error registering BS application: Timeout was reached
If you have any ideas why the method call would be timing out, please
let me know. Also if there is any additional information that would be
helpful in understanding where the failure is occurring, let me know and
I will reply with more information.
Are there any good examples of Bluetooth services implemented in C using
GDBus? In the BlueZ source tree I found "test/example-gatt-server"
which is written in Python and "tools/gatt-service.c" which is written
in C, but it uses dbus-glib rather than GDBus. My understanding is that
dbus-glib is deprecated.
^ permalink raw reply [flat|nested] only message in thread
only message in thread, back to index
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-02-02 0:02 Call to GattManager1.RegisterApplication times out David Frey
Linux-Bluetooth Archive on lore.kernel.org
Archives are clonable:
git clone --mirror https://lore.kernel.org/linux-bluetooth/0 linux-bluetooth/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 linux-bluetooth linux-bluetooth/ https://lore.kernel.org/linux-bluetooth \
Newsgroup available over NNTP:
AGPL code for this site: git clone https://public-inbox.org/ public-inbox