Skip to content

Commit

Permalink
added remotePeripheralIsReady delegate
Browse files Browse the repository at this point in the history
Signed-off-by: Dominik Pich <[email protected]>
  • Loading branch information
Daij-Djan committed Jul 4, 2016
1 parent 9942df8 commit a9d1e0f
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Source/BKRemotePeripheral.swift
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,12 @@ public protocol BKRemotePeripheralDelegate: class {
- parameter name: The new name.
*/
func remotePeripheral(remotePeripheral: BKRemotePeripheral, didUpdateName name: String)

/**
Called when services and charateristic are discovered and the device is ready for send/receive
- parameter remotePeripheral: The remote peripheral that is ready.
*/
func remotePeripheralIsReady(remotePeripheral: BKRemotePeripheral)
}

/**
Expand Down Expand Up @@ -164,6 +170,7 @@ public class BKRemotePeripheral: BKRemotePeer, BKCBPeripheralDelegate {
}
characteristicData = dataCharacteristic
peripheral.setNotifyValue(true, forCharacteristic: dataCharacteristic)
peripheralDelegate?.remotePeripheralIsReady(self)
}

internal func peripheral(peripheral: CBPeripheral, didUpdateValueForCharacteristic characteristic: CBCharacteristic, error: NSError?) {
Expand Down

0 comments on commit a9d1e0f

Please sign in to comment.