Closed mmswide closed 3 years ago
I will use original CBCentralDelegate and CBPeripheralDelegate.
@mobileguru121 If you want, I believe there is an NSNotification you can listen for. Check the interface of the Peripheral class it should be there.
Thank you, but I could not find it. I appreciate if you can teach me.
Sure, perhaps you are on an older version, this was recently added.
Make sure to update to the latest version and check out https://github.com/jordanebelanger/SwiftyBluetooth/blob/65e47a63740254738d4262e2ee214cdff366c8c2/Sources/Peripheral.swift#L77
Ok, thank you. I have to update the pod version to latest.
func centralManager(_ central: CBCentralManager, didConnect peripheral: CBPeripheral) I need to get this callback when the peripheral is disconnected. How can I get this to work? Many thanks.