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?
I've just tried:
BluetoothAdapter.getDefaultAdapter().setName("MyGattServerName");
and it worked!!!