在中使用bluez python dbus连接到Bluetooth LE设备

2024-10-02 14:21:13 发布

您现在位置:Python中文网/ 问答频道 /正文

我想连接到Bluetooth LE设备并用python接收来自它的通知。我想使用bluezdbusapi,但找不到我能理解的示例。:-)

对于gatttool,我可以使用以下命令:

gatttool-b C4:8D:EE:C8:D2:D8--char write req-a 0x001d-n 0100–侦听

在python中,如何使用Bluez的dbusapi实现同样的功能?在


Tags: 命令le示例reqeewrited2bluetooth