RSSI is deprecated since iOS 8...
RSSI is deprecated since iOS 8...
- Subject: RSSI is deprecated since iOS 8...
- From: "Eric E. Dolecki" <email@hidden>
- Date: Thu, 10 Dec 2015 20:20:26 +0000
I have BLE source code that now displays warnings. I don’t know much about
BLE. I offer the code below. I tried replacing with readRSSI but tells me I
can’t compare an Int with Void. How do I get an Int value for readRSSI?
Basically I’d like to rewrite this one method so it’s compliant.
- (void)peripheralDidUpdateRSSI:(CBPeripheral *)peripheral error:(NSError
*)error
{
if (!isConnected)
return;
if (rssi != peripheral.*RSSI*.intValue)
{
rssi = peripheral.*RSSI*.intValue;
[[self delegate] bleDidUpdateRSSI:activePeripheral.*RSSI*];
}
}
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden