* Locating /org/bluez/example/service from example-gatt-server [not found] ` <CAOT_U5azR21Fu5a9OQ5grRW=ztmT273iba4+nHO03hoZyq-rew@mail.gmail.com> @ 2019-08-29 16:37 ` Alan Martinovic 2019-09-08 16:44 ` Alan Martinovic 0 siblings, 1 reply; 3+ messages in thread From: Alan Martinovic @ 2019-08-29 16:37 UTC (permalink / raw) To: linux-bluetooth Hi, in the example-gatt-server which is provided in the sources there is a reference to the dbus object `/org/bluez/example/service`. When that example gets run successfully under what "unique connection name" does that object end up living? It doesn't exist under org.bluez ~$ busctl --list tree org.bluez / /org /org/bluez /org/bluez/hci0 Be Well, Alan ^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Locating /org/bluez/example/service from example-gatt-server 2019-08-29 16:37 ` Locating /org/bluez/example/service from example-gatt-server Alan Martinovic @ 2019-09-08 16:44 ` Alan Martinovic 2019-09-09 14:07 ` Barry Byford 0 siblings, 1 reply; 3+ messages in thread From: Alan Martinovic @ 2019-09-08 16:44 UTC (permalink / raw) To: linux-bluetooth Hey, looks like no activity here on my question, so in case someone is more into StackOverflow, I have a bounty on this question https://unix.stackexchange.com/questions/538107/locating-the-object-path-for-a-gatt-server-in-bluez Be Well, Alan On Thu, Aug 29, 2019 at 6:37 PM Alan Martinovic <alan.martinovic@senic.com> wrote: > > Hi, > in the example-gatt-server which is provided in the > sources there is a reference to the dbus object > `/org/bluez/example/service`. > > When that example gets run successfully under what > "unique connection name" does that object end up living? > > It doesn't exist under org.bluez > > ~$ busctl --list tree org.bluez > / > /org > /org/bluez > /org/bluez/hci0 > > Be Well, > Alan ^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Locating /org/bluez/example/service from example-gatt-server 2019-09-08 16:44 ` Alan Martinovic @ 2019-09-09 14:07 ` Barry Byford 0 siblings, 0 replies; 3+ messages in thread From: Barry Byford @ 2019-09-09 14:07 UTC (permalink / raw) To: Alan Martinovic; +Cc: Bluez mailing list Hi Alan, If a do a "busctl list" before and after starting the "example-gatt-server" I can see that there is a new service started. The way the example is coded it doesn't get given a nice service name but I can see it is called (in my case) ":1.20" I can now see the tree of services created. $ busctl tree ":1.20" └─/org └─/org/bluez └─/org/bluez/example ├─/org/bluez/example/service0 │ ├─/org/bluez/example/service0/char0 │ ├─/org/bluez/example/service0/char1 │ └─/org/bluez/example/service0/char2 ├─/org/bluez/example/service1 │ └─/org/bluez/example/service1/char0 └─/org/bluez/example/service2 ├─/org/bluez/example/service2/char0 │ ├─/org/bluez/example/service2/char0/desc0 │ └─/org/bluez/example/service2/char0/desc1 ├─/org/bluez/example/service2/char1 │ ├─/org/bluez/example/service2/char1/desc2 │ └─/org/bluez/example/service2/char1/desc3 └─/org/bluez/example/service2/char2 ├─/org/bluez/example/service2/char2/desc2 └─/org/bluez/example/service2/char2/desc3 While the object path is the same as "org.bluez", they are stored under a different service. So if I do "org.bluez" I can see they are not there: $ busctl tree "org.bluez" └─/org └─/org/bluez ├─/org/bluez/hci0 │ └─/org/bluez/hci0/dev_E3_AC_D2_F8_EB_B9 └─/org/bluez/test Hope that helps. Regards, Barry On Mon, 9 Sep 2019 at 14:09, Alan Martinovic <alan.martinovic@senic.com> wrote: > > Hey, > looks like no activity here on my question, > so in case someone is more into StackOverflow, > I have a bounty on this question > https://unix.stackexchange.com/questions/538107/locating-the-object-path-for-a-gatt-server-in-bluez > > Be Well, > Alan > > > On Thu, Aug 29, 2019 at 6:37 PM Alan Martinovic > <alan.martinovic@senic.com> wrote: > > > > Hi, > > in the example-gatt-server which is provided in the > > sources there is a reference to the dbus object > > `/org/bluez/example/service`. > > > > When that example gets run successfully under what > > "unique connection name" does that object end up living? > > > > It doesn't exist under org.bluez > > > > ~$ busctl --list tree org.bluez > > / > > /org > > /org/bluez > > /org/bluez/hci0 > > > > Be Well, > > Alan ^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2019-09-09 14:07 UTC | newest] Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- [not found] <CAOT_U5bDZwYLYsny9OpWs3HjQFLqYK2j3o3g2koKX_CwGUtMbw@mail.gmail.com> [not found] ` <CAOT_U5a-qBMnS0uaGx=O7Av_a0uVDWUaPxZb5HFbLijd+OQ6pA@mail.gmail.com> [not found] ` <CAOT_U5azR21Fu5a9OQ5grRW=ztmT273iba4+nHO03hoZyq-rew@mail.gmail.com> 2019-08-29 16:37 ` Locating /org/bluez/example/service from example-gatt-server Alan Martinovic 2019-09-08 16:44 ` Alan Martinovic 2019-09-09 14:07 ` Barry Byford
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).