简体   繁体   中英

BLE GATT server name

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("MyGattServerNa‌​me");

and it worked!!!

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM