Android 2.1: How do I poll the RSSI value of an existing Bluetooth connection?

前端 未结 2 538
有刺的猬
有刺的猬 2020-12-01 06:51

I need to know the signal strength of a Bluetooth connection to a remote device that I make with my Android 2.1 phone. From the SDK, I can see that I can determine the RSSI

2条回答
  •  孤街浪徒
    2020-12-01 07:42

    Sadly not for Android 2.1, but have a look at this API for level 18 (Android 4.3) which you could poll:

    BluetoothGatt.readRemoteRssi()
    

    Read the RSSI for a connected remote device.

    See Android docs here

提交回复
热议问题