troystribling / BlueCap

iOS Bluetooth LE framework
MIT License
714 stars 114 forks source link

Get CBPeripheral from BlueCapKit.Peripheral? #63

Closed Soulphalanx closed 7 years ago

Soulphalanx commented 7 years ago

Anyway to get a CBPeripheral from BlueCapKit.Peripheral? I'm using a framework to upgrade the firmware OTA and it only accepts CBPeripherals and I would prefer to not have to rewrite it or write another central using CoreBluetooth calls.

Thanks for your time.

troystribling commented 7 years ago

There is a cbPeripheral property on Peripheral but it is internal. It would have to be made public. Change would need to be made here https://github.com/troystribling/BlueCap/blob/master/BlueCapKit/Central/Peripheral.swift#L95.

Soulphalanx commented 7 years ago

Cool, that's what I figured. Thanks for the confirmation.