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/DFUDeviceFirmwareInfo.h | 56 ++++++++++++++++++++++ 1 file changed, 56 insertions(+) create mode 100644 libs/ihealth-sdk/ios/ReactNativeIOSLibrary/Communication_SDK/Headers/DFUDeviceFirmwareInfo.h (limited to 'libs/ihealth-sdk/ios/ReactNativeIOSLibrary/Communication_SDK/Headers/DFUDeviceFirmwareInfo.h') diff --git a/libs/ihealth-sdk/ios/ReactNativeIOSLibrary/Communication_SDK/Headers/DFUDeviceFirmwareInfo.h b/libs/ihealth-sdk/ios/ReactNativeIOSLibrary/Communication_SDK/Headers/DFUDeviceFirmwareInfo.h new file mode 100644 index 0000000..a33e67e --- /dev/null +++ b/libs/ihealth-sdk/ios/ReactNativeIOSLibrary/Communication_SDK/Headers/DFUDeviceFirmwareInfo.h @@ -0,0 +1,56 @@ +// +// DFUDeviceFirmwareInfo.h +// iHealthSDKStatic +// +// Created by Lei Bao on 2017/7/17. +// Copyright © 2017年 daiqingquan. All rights reserved. +// + +#import +#import "DFUMacro.h" +/** + Firmware information from device flash + */ +@interface DFUDeviceFirmwareInfo : NSObject +/** + Device UUID + */ +@property (copy, nonatomic, readonly) NSString *UUID; +/** + DFUDeviceType + */ +@property (assign, nonatomic, readonly) DFUDeviceType deviceType; + +/** + Model Number + */ +@property (copy, nonatomic, readonly) NSString *deviceModel; + +/** + Hardware version + */ +@property (copy, nonatomic, readonly) NSString *hardwareVersion; + +/** + Firmware version in Flash + */ +@property (copy, nonatomic, readonly) NSString *firmwareVersion; + +/** + YES:allow;NO:not allow + */ +@property (assign, nonatomic, readonly) BOOL canUpgrade; + +/** + Continue to transfer or not + */ +@property (assign, nonatomic, readonly) BOOL isContinue; + +/** + 1:update no need to disconnect 2:update need to disconnect + */ +@property (assign, nonatomic, readonly) NSInteger upgradeMethod; + ++ (instancetype)infoWithData:(uint8_t [])buf deviceType:(DFUDeviceType)deviceType deviceUUID:(NSString *)uuid; + +@end -- cgit