本文介绍了哪个工具替代了bluez5中的gatttool?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

似乎是因为commit b1eb2c4cd057624312e0412f6c4be000f7fc3617gatttool已被弃用,但我无法找到有关的任何信息是什么取代了gattool.

It seems like since commit b1eb2c4cd057624312e0412f6c4be000f7fc3617gatttool has been deprecated but I'm unable to find any information onwhat has replaced gattool.

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

Every Python Bluetooth LE packages I looked into relays on gatttooland is now broken on my ArchLinux system since the bluez package isn'tbuild with --enabled-deprecated flag (which would build gatttool binary).

pygatt刚在我的系统上损坏,并且bluepy并未构建,因为它们运送自己的(在我的系统上已损坏)bluez代码来构建gatttool.

pygatt is just broken on my system and bluepy doesn't build as theyship there own (on my system broken) bluez code to build gatttool.

无论如何,我都希望围绕替换的内容编写新的包装器gatttool,但我找不到有关此主题的任何信息.

Whatsoever I looking to write a new wrapper around whatever replacedgatttool but I'm unable to find any information on this topic.

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

So which tool from the bluez stack can I use to write a new Python Bluetooth LE wrapper?

推荐答案

更新

ArchWiki 已将gatttool列为已弃用,并列出了 btgatt-client 替代D-Bus Gatt API.

ArchWiki listed gatttool as deprecated and lists btgatt-client the D-Bus Gatt API as replacement.

来自labapart的gattlib 支持bluez 并提供 gatttool .

gattlib from labapart supports bluez and provides gatttool.

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

I guess gatttool got deprecated due to a missing maintainer rather than being replaced by some new tool.

修改不幸的是,链接存储库中gatttool的代码仅支持bluez 4.

editunfortunately the code for gatttool in the linked repository supports only bluez 4.

这篇关于哪个工具替代了bluez5中的gatttool?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-18 15:41