我正在创建一个充当外围设备的Android应用程序并发送蓝牙低功耗广告。我正在使用BluetoothGattServer为客户端设备设置服务器以进行连接。我的主要目标是从客户端读取RSSI值。我是否可以使用BluetoothGattCallback而不是BluetoothGattServerCallback与BluetoothGattServer,以便我可以实现和使用readRemoteRssi?
答案 0 :(得分:1)
BluetoothGattCallback与Master有关 因此,如果您的手机充当服务器/从属设备,您将无法使用它