2013-04-19 136 views

回答

2

得到了來自郵件的BlueZ列表中的答案:在5.x的的BlueZ

「到目前爲止,沒有在5.x的的BlueZ沒有GATT d-Bus的API只有這樣,才能 訪問GATT型材正在使用現有的配置文件 D-Bus API(溫度計,心率,接近度,騎行速度,HID 而不是GATT)或使用C API(如gatttool)。「 (http://marc.info/?l=linux-bluetooth&m=136656873604635&w=2「)

這是不支持到5.4的BlueZ

+0

你有沒有發現這方面的任何解決辦法?有一個'間隙關貿總協定profile'但沒有觀察家它。 – dashesy

+0

@dashesy尚未,我降級到BlueZ 4.101,然後發送到gatttool。查看[noble](https://github.com/sandeepmistry/noble)node.js BLE lib。我創建了一個例子。 – sandeepmistry

+0

有關歷史記錄,實驗性的GATT D-Bus API最終在5.29版中加入: https://git.kernel.org/cgit/bluetooth/bluez.git/tree/ChangeLog?h=5.29#n16 –