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
23
votes
2 answers
Which correct flag of autoConnect in connectGatt of BLE?
My goal is to make an auto connection between Bluetooth Low Energy device and phone. I followed the sample code and I found the line
// We want to directly connect to the device, so we are setting the autoConnect parameter to false.
mBluetoothGatt =…

Jame
- 3,746
- 6
- 52
- 101
19
votes
1 answer
Android 10 BLE connection issue
I am working on an app that is connected to the BLE device using BluetoothGatt.
I am successfully able to scan and connect with BLE devices in all devices like Samsung, Pixel, etc. I followed Android official BLE connection guide for scanning and…

Sanjay Kakadiya
- 1,596
- 1
- 15
- 32
12
votes
4 answers
Android BLE Gatt connection change statuses
I have an android app to connect to a BLE device and write to it. I can successfully connect, read and write to it. As a part of testing, we are trying different disconnection scenarios.
Sometimes, if BLE device disconnects the connection, I get the…

Ijas Ahamed N
- 5,632
- 5
- 31
- 53
8
votes
1 answer
Is there a list with Bluetooth GATT Services and their description?
I'm looking for a list of Bluetooth GATT Services with a short description of each. I'm developing a BLE Android App and have to choose the best service.

lila
- 81
- 1
- 3
8
votes
1 answer
Bluetooth Appearance Icons
I'm working on firmware for a BLE device and need to define an appearance value. For now, I have chosen a 'Generic Computer'. However, the full list of appearance values…

user3439702
- 345
- 3
- 10
7
votes
1 answer
Battery Level of Bluetooth devices using Java
I am trying build a simple java program which shows battery status of connected Bluetooth devices in windows. see bellow sample image.
First I started with BlueCove and realized BlueCove only provides basic information such as address, simple name…

Akila
- 1,258
- 2
- 16
- 25
7
votes
1 answer
How to fix GattStatus: 3 - WriteNotPermitted exception for BLE Xamarin forms application?
I am working on a BLE application. I am able to connect to MI band and get the services through my Xamarin forms BLE app. But when I am trying to write characteristics I am getting exception. I'm getting exception
Characteristic does not support…

Judson Abraham
- 316
- 2
- 11
- 37
7
votes
0 answers
ios CoreBluetooth connectionEventDidOccur not being called
I have a peripheral device which supports A2DP profile and gatt over BR/EDR. Various gatt services are registered in the sdp record for bluetooth classic.
I have developed an Android app to communicate with it successfully as follows :
//here scan…

Tiger Wang
- 119
- 9
7
votes
1 answer
BluetoothGattCallback returns 129 -> GATT_INTERNAL_ERROR for a Beacon, but returns 0 for phones
I call on my bluetooth adapter mBluetoothAdapter.startDiscovery(); which then returns me a list of BluetoothDevices. When I press on 1 of those devices, I do this:
mBluetoothGatt = bluetoothDevice.connectGatt(MainActivity.this, false,…

rosu alin
- 5,674
- 11
- 69
- 150
5
votes
0 answers
Trying to create a Gatt Client application for Windows C++ that doesn't fail when connection established
I am using the Windows api Gatt Client BLE for C++, my goal is to connect two devices (but in this case I will try just one) and keep reading and writing data constantly without closing the device at any time. All my devices have one specific…

María Román
- 33
- 18
5
votes
0 answers
ESP32 acting as BLE server, cannot pair cyclocomputer
I'm trying to create a cycling power service on the ESP32 using PlatformIO and the NimBLE-Arduino library.
Connecting, bonding, subscribing to the notifications and receiving the power data all work when the client is the nRF Connect Android app,…

gsoros
- 51
- 1
- 3
5
votes
2 answers
How do you build a BLE app when you don't have access to the official GATT XML files?
To build a BLE app, you need
service UUID
the service's characteristic UUIDs
the characteristic's permissions (read / write / notify ...)
If you are sending any data, you need to know the value type (uint8_t, uint16_t ...)
For an instance, if it…

kukrt
- 2,117
- 3
- 21
- 32
5
votes
2 answers
Web-Bluetooth error "GATT operation not authorized" occurs on Windows only
I have been working with web-bluetooth for the past several months on iOS and ChromeOS without any problems. But today, I tried to run some of my examples on Windows for the first time, and to my surprise, most of the things I had implemented didn't…

Albert
- 131
- 7
5
votes
1 answer
bluez and service/characteristics cache issue with Android
I have some trouble to communicate through BLE between an Android mobile application and a custom embedded device. The embedded device is peripheral and used a custom GATT profile define with Bluez.
Everything is working fine. The problem is that…

ArthurLambert
- 749
- 1
- 7
- 30
5
votes
1 answer
Documentation for Fluoride bluetooth stack
I'm working on BLE using Fluoride stack which is open-source. Is there any documentation or any notes that would help me to understand the architecture of Fluoride stack? Any help regarding this would be appreciated.

Pavan Hr
- 51
- 1
- 3