From 86c89975f4babcd6649824300bd64645b9169856 Mon Sep 17 00:00:00 2001 From: Erkki Silvola Date: Sun, 29 Sep 2019 08:33:32 +0300 Subject: [PATCH] iOS sdk and debs updated --- .../example-ios/polarBleSdkTestApp/ViewController.swift | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/examples/example-ios/polarBleSdkTestApp/ViewController.swift b/examples/example-ios/polarBleSdkTestApp/ViewController.swift index 8158caf0..aa8b46b0 100644 --- a/examples/example-ios/polarBleSdkTestApp/ViewController.swift +++ b/examples/example-ios/polarBleSdkTestApp/ViewController.swift @@ -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) @@ -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)") + } }