dbus bluez表示通知
在dbus中,org.bluez.gattcharacteristic1的接口具有一个接口startNotify()。这可以通过定义的回调正常工作。如何用表示启用通知?
In Dbus the interface for org.bluez.GattCharacteristic1 has an interface StartNotify(). This works fine with a callback defined. How do I enable notify with indicate?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
是否是
Notify
或指示
startNotify()
函数用法是由其操作的特征定义的。例如,使用
bluetoothctl
来查看BBC Micro上的两个特征:位您可以看到一个人支持notify
inde
。您将在这两个上都使用startNotify()
。Whether it is
notify
orindicate
that theStartNotify()
function uses is defined by the characteristic it is operating on.As an example, using
bluetoothctl
to look at two characteristics on a BBC micro:bit you can see that one supportsnotify
and one supportsindicate
. You would useStartNotify()
on both.