Hi,
There are two ways to read the RSSI value in BT LE.
1) The RSSI value will be provided for each advertising packet received. This allows you to calculate the approximate distance to the device
2) For a connected peripheral, you can read the RSSI of the connected link by calling readRSSI on the CBPeripheral object.
- (void)readRSSI;
After the RSSI has been read, you'll get a call-back on the delegate
- (void)peripheralDidUpdateRSSI:(CBPeripheral *)peripheral
error:(NSError *)error; The updated RSSI is now available in the CBPeripheral property:
@property(retain, readonly) NSNumber *RSSI;
Hope this helps. Please let me know if you have any questions.
Thanks, Joakim
On May 21, 2012, at 2:29 AM, 张 wrote: Hi, I am trying to read the BLE RSSI value of the iphone 4S. I found the reedRSSI function in CBPeripheral.h. But how to use it? Is it possible to get RSSI value w
Do not post admin requests to the list. They will be ignored.
Bluetooth-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
|