Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

BlueZ 5.4 DBus API ConnectProfile GATT service UUID

How can I connect to a GATT service using the DBus API with BlueZ?

I have used the BlueZ DBUS API to discover a device, connect, and discover the GATT service UUID's.

However when I try to ConnectProfile for one of the GATT service UUID's I get a error.

like image 588
sandeepmistry Avatar asked Nov 03 '22 23:11

sandeepmistry


1 Answers

Got an answer from the BlueZ mailing list:

"So far, there is no GATT D-Bus API in BlueZ 5.x. The only way to access GATT profiles in BlueZ 5.x is using existing profile specific D-Bus APIs (thermometer, heart rate, proximity, cycling speed, HID over GATT) or using C API (like gatttool does)." (http://marc.info/?l=linux-bluetooth&m=136656873604635&w=2")

This is not supported into BlueZ 5.4

like image 185
sandeepmistry Avatar answered Nov 11 '22 21:11

sandeepmistry