Not getting rssi after connecting to a ble peripheral simulated on an android device

261
August 11, 2017, at 07:06 AM

I have two android devices: Device A and Device B. I am running a BLE Peripheral Simulator on device A. I am running the Device B in BLE Central mode. I also have a BLE Beacon. With Device B I can connect to the ble beacon and request for rssi

BluetoothGatt.readRemoteRssi()

But when I connect the Device A which is running a BLE Peripheral Simulator from Device B (which is in BLE Central mode) I and not able to get the proper rssi with the same function. Its giving 0 in

    @Override
    public void onReadRemoteRssi(BluetoothGatt gatt, int rssi, int status) {
        super.onReadRemoteRssi(gatt, rssi, status);
        Log.i(TAG, "onReadRemoteRssi: " + rssi);
    }
Rent Charter Buses Company
READ ALSO
How to increase the size of a layout when more content is added to it in Kivy?

How to increase the size of a layout when more content is added to it in Kivy?

How do I change the size of the BoxLayout widget so that it scrolls vertically when more and more content is added to it? You can run the script below but keep adding more text and click send in order to see the behavior

337
How can we have autoscrolling effect in recycler view in android?

How can we have autoscrolling effect in recycler view in android?

I have a recycler view at which the adapter is added with an arraylist of 10 numbersThe recycler view should have smooth auto scrolling effect when I open the app

270
How to clear task and start new activity from widget

How to clear task and start new activity from widget

I have an application with the following activities

295
Ubuntu Android emulator not starting up

Ubuntu Android emulator not starting up

For two days, I have been trying to make my android emulator work by doing what other people on the internet did but nothing seems to workI tried choosing Software GLES 2

405