Replies: 1 comment 4 replies
-
Hi @wpd,
That's OK, I fully understand :) And your question makes sense :)
As far as I remember, the association is simply inferred from the object path. So, in your example, you should automatically have an item for Btw., I suggest, unless you have counter-reasons, that you use the highest-level API of sdbus-c++. Just get hold of the IDL XML of the service you're talking to (using dbus-introspect cmd line tool, for example), and have the proxy classes generated from that by |
Beta Was this translation helpful? Give feedback.
-
I am trying to use this library to implement a Bluetooth Low Energy (BLE) peripheral with bluez. (Perhaps you know of somebody who has already done this... I'd be happy to go pester them instead of you :-) ) And, I don't really know what I'm doing yet. So, I'm in the stage of "ask lots of questions and read lots of web pages".
According to gatt-api.txt:
It seems to me then, that I need to create an sdbus-cpp top level object and enable the ObjectManager on it, perhaps by calling something like:
and then, to create the object for the service, I would:
but how do I associate the
myService
object as something that is managed by thetopLevel
object? Does sdbus-cpp do that automatically for me just because they share the same base path (/com/example
), or is there anaddManagedObject()
API function (which I can't find) which I should call to associatedmyService
withtopLevel
?Does my question make sense? Often, a question that makes no sense, is an indicator that the person asking the question has no idea what he is talking about. That is absolutely the case now.
Thanks for any help or tips you can provide.
--wpd
Beta Was this translation helpful? Give feedback.
All reactions