From d6d9a09d505d11148599a95a5be3e1351edbe0ac Mon Sep 17 00:00:00 2001 From: hc Date: Mon, 13 Apr 2026 15:17:52 +0800 Subject: Local iHealth SDK, device detail screen, iOS event fixes --- .../Headers/ScanDeviceController.h | 47 ++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 libs/ihealth-sdk/ios/ReactNativeIOSLibrary/Communication_SDK/Headers/ScanDeviceController.h (limited to 'libs/ihealth-sdk/ios/ReactNativeIOSLibrary/Communication_SDK/Headers/ScanDeviceController.h') diff --git a/libs/ihealth-sdk/ios/ReactNativeIOSLibrary/Communication_SDK/Headers/ScanDeviceController.h b/libs/ihealth-sdk/ios/ReactNativeIOSLibrary/Communication_SDK/Headers/ScanDeviceController.h new file mode 100644 index 0000000..a8700f9 --- /dev/null +++ b/libs/ihealth-sdk/ios/ReactNativeIOSLibrary/Communication_SDK/Headers/ScanDeviceController.h @@ -0,0 +1,47 @@ +// +// ScanDeviceController.h +// iHealthDemoCode +// +// Created by zhiwei jing on 1/24/16. +// Copyright © 2016 zhiwei jing. All rights reserved. +// + +#import +#import "HealthHeader.h" + +/** + ScanDeviceController + */ +@interface ScanDeviceController : NSObject + ++(ScanDeviceController *)commandGetInstance; + +/** + Start scan iHealth device with bluetooth low energy (scan maintains 12s, then auto stop scan) + + @param tempDeviceType HealthDeviceType enum + @note Before call the Api, should register discover Notification. such as :[[NSNotificationCenter defaultCenter]addObserver:self selector:@selector(devicePO3Discover:) name:PO3Discover object:nil]; + You will get two type result: + { + DeviceName = PO3; + ID = 60EC1538-46B7-3830-DDE2-0642AC9649F3; + } + or + { + DeviceName = PO3; + SerialNumber = 883314776729; + } + Then call [ConnectDeviceController :commandContectDeviceWithDeviceType:andSerialNub] to connect. + Attentation: Stop scan befroe connect device, otherwise connect may fail. + @return 0 + */ +-(int)commandScanDeviceType:(HealthDeviceType)tempDeviceType; + + +/** + * Stop scan iHealth device with bluretooth low energy + * @param tempDeviceType iHealth DeviceType + */ +-(int)commandStopScanDeviceType:(HealthDeviceType)tempDeviceType; + +@end -- cgit