BLE GATT server name

1.2k Views Asked by At

I've created an android app of BLE GATT server, but I can't find where I write the name of the GATT Server, I mean the device name that appears in search.

I tried both https://github.com/androidthings/sample-bluetooth-le-gattserver https://github.com/googlesamples/android-BluetoothLeGatt

and can't find where the name of the device being written? how BLE search decide what name to show?

1

There are 1 best solutions below

0
On BEST ANSWER

I've just tried:

BluetoothAdapter.getDefaultAdapter().setName("MyGattServerNa‌​me");

and it worked!!!