The Generic Attribute Profile (GATT) defines the way that two Bluetooth Low Energy (BTLE) devices transfer data back and forth using concepts called Services and Characteristics.
Questions tagged [bluetooth-gatt]
459 questions
2
votes
2 answers
Reading data from BLE device with web bluetooth?
I'm new to javascript so i might have some unconventional way of programming.
That said, I'm working on a project where I need to read and write data to a custom BLE device.
I'm using the gatt server protocol for the connection.
I'm able to make a…
user12077643
2
votes
0 answers
How are you supposed to have multiple attributes in one service?
I'm building a BLE automation IO card, so I'm trying to use BLE-Automation I/O
https://www.bluetooth.com/wp-content/uploads/Sitecore-Media-Library/Gatt/Xml/Services/org.bluetooth.service.automation_io.xml
And it says that it supports 1 or more…

Thor Johnson
- 31
- 5
2
votes
1 answer
How to set/get/request MTU from android to iOS or viceversa BLE?
We are sending mtu request from android to iOS
Android - Requesting mtu from this function onServicesDiscovered callback
But I do not know the way how to find out if peer device support requested MTU and what is actually negotiated MTU. The…

Manikandan S
- 115
- 3
- 18
2
votes
1 answer
Setting up GATT server using bluetoothctl tool
I'm able to set up GATT services and characteristics with the
latest bluetoothctl tool using the following commands:
register-service,
register-characteristic,
register-application
I was just wondering if there is a way to define GATT-based…

Edward Fung
- 21
- 1
2
votes
1 answer
Android BLE Gatt Server with multiple services - onCharacteristicWriteRequest() no char for handle
I am trying to build a BLE Gatt Server with multiple custom services and multiple characteristics.
To begin with I used the Google Example: https://github.com/androidthings/sample-bluetooth-le-gattserver/tree/master/kotlin
This was straight forward…

SpringHawk
- 51
- 6
2
votes
1 answer
Fetch advertisement data using the Web Bluetooth API
I have been trying to fetch the nearby BLE advertisements using Web Bluetooth API. I have been been following the steps in this link.
It has been mentioned in the link that, in order to scan nearby BLE advertisements…

anu010291
- 85
- 1
- 7
2
votes
0 answers
In WebBluetooth development, How do i know UUIDs for services and characteristics that is offered by the device BLE peripheral?
I am assigned to use WebBluetooth functionality to connect to a Bluetooth BLE Printer and do some PRINTING.
Upon reading documentations, i figured that the way to do this is through some web bluetooth libraries that will enable you to CONNECT ->…

Wayne De Los Angeles
- 109
- 1
- 6
2
votes
1 answer
How we can achieve the BLE peripheral device to connect to only our Android app (Central) if any other app try to connect need to disconnect
As question suggested we have our own BLE device and Android app to connect with that device. We are able to connect with BLE device and do all operations successfully.
In the meantime, we are able to detect our BLE device with other 3rd party apps…

YBDevi
- 439
- 5
- 22
2
votes
2 answers
BLE Gatt onConnectionStateChanged failed with status 257 in Android
I am developping a Android app that connects to multiple BLE devices at the same time, after that i read characteristic permanently from those devices but after a while, I am getting a status 257 in the onConnectionStateChanged() function, the…

lotfi Raghib
- 434
- 1
- 6
- 17
2
votes
1 answer
Write characteristic always false
Now I know this question has been asked about a billion times.
I've read through most of them(this website hasn't been that helpful for my problem), I've read through the docs and I've read through the examples and tutorials.
What I'm trying to do…

Nephilim
- 494
- 5
- 25
2
votes
2 answers
HEX data from BLE characteristic to Byte Array, how to convert to String
My BLE android app can currently connect to my BLE hardware and connect to the GATT server. I can also enable notifications and read the characteristic. However the characteristic advertised is of HEX format.
On my Service I tried receiving the data…

Andreas Parlatas
- 41
- 4
2
votes
2 answers
[RPi3][Bluez] Managed to connect to a BLE device but can't list GATT attributes
I am doing a project where I need to create communication between two Raspberry Pi 3 on stretch (RPi) wirelessly with callback functionalities using C++ code. The first is supposed to send data to the second one. I decided to create a bluetooth…

Valentin D.
- 21
- 1
- 5
2
votes
1 answer
Scanning for BLE devices on Android 8+ in the background
I'm using the following method from BLE scanner API on Android 8+
to scan for BLE Beacons
startScan(List filters, ScanSettings settings,
PendingIntent callbackIntent)
The problem is that after sometimes I can see Scan Logs but nothing…

Metwalli
- 1,861
- 1
- 18
- 27
2
votes
0 answers
When connect to an OBD device, setCharacteristicNotification and writeCharacteristic, onCharacteristicChanges received 3E 00 00 3F notification
When connected to an OBD device, setCharacteristicNotification and writeCharacteristic. Notification was received onCharacteristicChanged.
But the notification showed 3E 00 00 3F, same conditions for many write requests. It is expected to return the…

Ellen Shiu
- 21
- 2
2
votes
1 answer
What does Battery level state (0x2A1B) Bluetooth specification mean?
Battery Level State (0x2A1B) is not listed under Battery Service specification in Bluetooth docs, only the Battery Level (0x2A19) is. However, when reading the characteristic Battery Level State (0x2A1B) under Battery Service, the 0x2A1B…

imrich
- 383
- 5
- 14