diff --git a/demos/iOS-Demos/PolarSDK-Exercise-Demo/PolarSDK-Exercise-Demo/ViewController.swift b/demos/iOS-Demos/PolarSDK-Exercise-Demo/PolarSDK-Exercise-Demo/ViewController.swift index 26fb1809..95203344 100644 --- a/demos/iOS-Demos/PolarSDK-Exercise-Demo/PolarSDK-Exercise-Demo/ViewController.swift +++ b/demos/iOS-Demos/PolarSDK-Exercise-Demo/PolarSDK-Exercise-Demo/ViewController.swift @@ -9,7 +9,8 @@ class ViewController: UIViewController, UITableViewDelegate, UITableViewDataSour PolarBleApiObserver, PolarBleApiPowerStateObserver, PolarBleApiDeviceInfoObserver, -PolarBleApiDeviceFeaturesObserver { + PolarBleApiDeviceFeaturesObserver { + var api: PolarBleApi! var deviceId: String? @@ -148,8 +149,7 @@ PolarBleApiDeviceFeaturesObserver { NSLog("Battery level \(identifier): \(batteryLevel) ") } - func fwVersionReceived(_ identifier: String, fwVersion: String) { - NSLog("Firmware version \(identifier): \(fwVersion) ") + func disInformationReceived(_ identifier: String, uuid: CBUUID, value: String) { + NSLog("DIS info \(identifier): \(uuid.uuidString) : \(value)") } } - diff --git a/examples/example-ios/polarBleSdkTestApp/ViewController.swift b/examples/example-ios/polarBleSdkTestApp/ViewController.swift index 356bf4ff..b502be18 100644 --- a/examples/example-ios/polarBleSdkTestApp/ViewController.swift +++ b/examples/example-ios/polarBleSdkTestApp/ViewController.swift @@ -2,6 +2,7 @@ import UIKit import PolarBleSdk import RxSwift +import CoreBluetooth class ViewController: UIViewController, PolarBleApiObserver, @@ -10,6 +11,7 @@ class ViewController: UIViewController, PolarBleApiDeviceInfoObserver, PolarBleApiDeviceFeaturesObserver, PolarBleApiLogger { + // NOTICE this example utilizes all available features var api = PolarBleApiDefaultImpl.polarImplementation(DispatchQueue.main, features: Features.allFeatures.rawValue) var broadcast: Disposable? @@ -281,8 +283,8 @@ class ViewController: UIViewController, NSLog("battery level updated: \(batteryLevel)") } - func fwVersionReceived(_ identifier: String, fwVersion: String) { - NSLog("fw version updated: \(fwVersion)") + func disInformationReceived(_ identifier: String, uuid: CBUUID, value: String) { + NSLog("dis info: \(uuid.uuidString) value: \(value)") } // PolarBleApiDeviceHrObserver