Skip to content

Commit

Permalink
iOS sdk and debs updated
Browse files Browse the repository at this point in the history
  • Loading branch information
Erkki Silvola committed Sep 29, 2019
1 parent 653cf7a commit 86c8997
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion examples/example-ios/polarBleSdkTestApp/ViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ class ViewController: UIViewController,
PolarBleApiDeviceHrObserver,
PolarBleApiDeviceInfoObserver,
PolarBleApiDeviceFeaturesObserver,
PolarBleApiLogger {
PolarBleApiLogger,
PolarBleApiCCCWriteObserver {

// NOTICE this example utilizes all available features
var api = PolarBleApiDefaultImpl.polarImplementation(DispatchQueue.main, features: Features.allFeatures.rawValue)
Expand Down Expand Up @@ -339,4 +340,9 @@ class ViewController: UIViewController,
func message(_ str: String) {
NSLog(str)
}

/// ccc write observer
func cccWrite(_ address: UUID, characteristic: CBUUID) {
NSLog("ccc write: \(address) chr: \(characteristic)")
}
}

0 comments on commit 86c8997

Please sign in to comment.