【发布时间】:2013-04-12 08:28:23
【问题描述】:
如何使用带有 BlueZ 的 DBus API 连接到 GATT 服务?
我已使用 BlueZ DBUS API 发现设备、连接并发现 GATT 服务 UUID。
但是,当我尝试为 GATT 服务 UUID 之一连接配置文件时,我收到错误。
【问题讨论】:
标签: dbus bluetooth-lowenergy bluez
如何使用带有 BlueZ 的 DBus API 连接到 GATT 服务?
我已使用 BlueZ DBUS API 发现设备、连接并发现 GATT 服务 UUID。
但是,当我尝试为 GATT 服务 UUID 之一连接配置文件时,我收到错误。
【问题讨论】:
标签: dbus bluetooth-lowenergy bluez
从 BlueZ 邮件列表中得到了答复:
“到目前为止,BlueZ 5.x 中还没有 GATT D-Bus API。唯一的方法是 在 BlueZ 5.x 中访问 GATT 配置文件正在使用现有的配置文件特定 D-Bus API(温度计、心率、接近度、骑行速度、HID 通过 GATT)或使用 C API(就像 gatttool 一样)。” (http://marc.info/?l=linux-bluetooth&m=136656873604635&w=2")
BlueZ 5.4 不支持此功能
【讨论】:
gap-gatt-profile,但没有观察者。