Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想在我的 AllJoyn 应用程序中使用发布/订阅模型。我有几个实现相同接口的对象,然后它们仅在对象路径上有所不同。使用通知服务,在我看来,您只能选择应用程序而不是特定对象,而使用观察者,您只能指定接口(包括所有对象)。实施它的最佳方法是什么?
如果您的每个对象都发布了 About 消息,则 About 侦听器将能够从 About 消息中获取路径。以 alljoyn_core/samples 中的 about 和 aboutlistener 为例。