PunchThrough / Bean-iOS-OSX-SDK

Punch Through's SDK for speeding up development with the LightBlue Bean development platform
MIT License
172 stars 51 forks source link

readRSSI does not work on iOS 8 #5

Closed hermiteer closed 10 years ago

hermiteer commented 10 years ago

I cannot get readRSSI to ever call PTDBeanDelegate:beanDidUpdateRSSI. According to Apple, the current implementation's use of CBPeripheralDelegate:peripheralDidUpdateRSSI:error has been deprecated in favor of CBPeripheralDelegate:peripheral:didReadRSSI:error. Although only marked as deprecated, on an iPhone 6 with iOS 8.0.2 it never worked for me.

The solution was to copy the body of PTDBleDevice:peripheralDidUpdateRSSI:error to a new method to match the didReadRSSI signature, and PTDBean:readRSSI works as expected now.

It seems like this is something that could be fixed in the next version of the SDK.

Thanks for your time.

raykamp commented 10 years ago

Hi hermiteer, thank you for posting the issue and providing feedback!

I'll have the SDK updated shortly and this fix will be pushed in the next release.

raykamp commented 10 years ago

Fixed in 0.5.4 :)