linux - bluez5 中哪个工具取代了 gatttool?

标签 linux bluetooth bluez pybluez

似乎自从 commit b1eb2c4cd057624312e0412f6c4be000f7fc3617 gatttool 已被弃用,但我无法找到关于 什么取代了 gattool。

我在 gatttool 上研究过的每个 Python 蓝牙 LE 包 现在在我的 ArchLinux 系统上坏了,因为 bluez 包不是 使用 --enabled-deprecated 标志构建(这将构建 gatttool 二进制文件)。

pygatt 刚刚在我的系统上损坏,而 bluepy 没有像它们那样构建 有自己的(在我的系统上坏了)bluez 代码来构建 gatttool。

无论我想围绕替换的内容编写一个新的包装器 gatttool,但我找不到关于此主题的任何信息。

那么我可以使用 bluez 堆栈中的哪个工具来编写新的 Python 蓝牙 LE 包装器?

最佳答案

更新

ArchWikigatttool 列为已弃用并列出 btgatt-client D-Bus Gatt API 作为替代品。

gattlib from labapart支持 bluez 5 并提供 gatttool .

我猜 gatttool 被弃用是因为缺少维护者,而不是被一些新工具取代。

编辑 不幸的是,链接存储库中的 gatttool 代码仅支持 bluez 4。

关于linux - bluez5 中哪个工具取代了 gatttool?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43200868/

相关文章:

bluetooth-lowenergy - 自动重新连接受信任的 BLE 设备

bluetooth - 无法连接到 Raspberry Pi 上的 BLE 设备

linux - 如何保持蓝牙音箱连接树莓派不休眠

c++ - Linux动态和静态链接

c - 如何对 UDP 协议(protocol)进行拥塞控制?

bluetooth - 网络蓝牙 : Want to exclude certain devices when using navigator. bluetooth.requestDevice

Android 蓝牙 PBAP

linux - 如何在命令参数中放置 CodeBuild 环境变量?

Linux:用列格式化流(管道)输出? (未确定的文件大小)

python-3.x - 为 Pybluez 安装 GATTlib?