[英]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. 我已经创建了一个BLE GATT服务器的Android应用程序,但我找不到我写GATT服务器名称的位置,我的意思是搜索中出现的设备名称。
I tried both https://github.com/androidthings/sample-bluetooth-le-gattserver https://github.com/googlesamples/android-BluetoothLeGatt 我试过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?
BLE搜索如何决定显示什么名称?
I've just tried: 我刚尝试过:
BluetoothAdapter.getDefaultAdapter().setName("MyGattServerName"); BluetoothAdapter.getDefaultAdapter()的setName( “MyGattServerNa我”)。
and it worked!!! 它工作了!!!
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.