As a peripheral device, when you advertise a packet an RSSI value is included, from what i understand. Is there a way for the peripheral device to read that RSSI value once a connection is made to a central device?
Asked
Active
Viewed 67 times
1 Answers
0
You didn't mentioned whether you are trying for android or iOS. I will give hints for both.
For android
Make readRemoteRssi() Async call and read the RSSI value from it's callback onReadRemoteRssi
For iOS:
Call readRSSI() instance method and receive RSSI value from it's delegate peripheral(_:didReadRSSI:error:)

Md. Mostafizur Rahman
- 461
- 1
- 6
- 16
-
Android. And thank you i will try to implement that! – Mikeyj Feb 22 '18 at 15:36
-
I have a callback that extends the AdvertiseCallback class which is from what i understand essential. So is it possible for me to create another callback that extends BlueToothGattCallback so that i can use onReadRemoteRssi. Is there a way to merge both Callbacks together? – Mikeyj Mar 05 '18 at 22:37