5

如何使用带有 BlueZ 的 DBus API 连接到 GATT 服务?

我使用 BlueZ DBUS API 来发现设备、连接和发现 GATT 服务 UUID。

但是,当我尝试为 GATT 服务 UUID 之一连接配置文件时,出现错误。

4

1 回答 1

2

从 BlueZ 邮件列表中得到答案:

“到目前为止,BlueZ 5.x 中没有 GATT D-Bus API。在 BlueZ 5.x 中访问 GATT 配置文件的唯一方法是使用现有配置文件特定的 D-Bus API(温度计、心率、接近度、骑行速度、 HID over GATT)或使用 C API(就像 gatttool 一样)。” ( http://marc.info/?l=linux-bluetooth&m=136656873604635&w=2 ")

BlueZ 5.4 不支持此功能

于 2013-04-21T19:31:03.287 回答