Android Bluetooth Low Energy readRemoteRssi

前端 未结 3 847
心在旅途
心在旅途 2021-02-10 02:22

I can\'t figure out how to get the \'onReadRemoteRssi\' callback work.

My code is very simple :

final BluetoothManager bluetoothManager = (BluetoothManag         


        
3条回答
  •  旧时难觅i
    2021-02-10 02:38

    http://developer.android.com/reference/android/bluetooth/BluetoothGatt.html#readRemoteRssi()

    Async call to start reading signal strength.

    http://developer.android.com/reference/android/bluetooth/BluetoothGattCallback.html#onReadRemoteRssi(android.bluetooth.BluetoothGatt,%20int,%20int)

    Callback after the read finishes.

    Need to connect before read

    reference here Continual Bluetooth LE Signal Strength on Android

提交回复
热议问题