diff options
Diffstat (limited to 'libs/ihealth-sdk/ios/ReactNativeIOSLibrary/Communication_SDK/Headers/DFUDeviceFirmwareInfo.h')
| -rw-r--r-- | libs/ihealth-sdk/ios/ReactNativeIOSLibrary/Communication_SDK/Headers/DFUDeviceFirmwareInfo.h | 56 |
1 files changed, 56 insertions, 0 deletions
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 @@ | |||
| 1 | // | ||
| 2 | // DFUDeviceFirmwareInfo.h | ||
| 3 | // iHealthSDKStatic | ||
| 4 | // | ||
| 5 | // Created by Lei Bao on 2017/7/17. | ||
| 6 | // Copyright © 2017年 daiqingquan. All rights reserved. | ||
| 7 | // | ||
| 8 | |||
| 9 | #import <Foundation/Foundation.h> | ||
| 10 | #import "DFUMacro.h" | ||
| 11 | /** | ||
| 12 | Firmware information from device flash | ||
| 13 | */ | ||
| 14 | @interface DFUDeviceFirmwareInfo : NSObject | ||
| 15 | /** | ||
| 16 | Device UUID | ||
| 17 | */ | ||
| 18 | @property (copy, nonatomic, readonly) NSString *UUID; | ||
| 19 | /** | ||
| 20 | DFUDeviceType | ||
| 21 | */ | ||
| 22 | @property (assign, nonatomic, readonly) DFUDeviceType deviceType; | ||
| 23 | |||
| 24 | /** | ||
| 25 | Model Number | ||
| 26 | */ | ||
| 27 | @property (copy, nonatomic, readonly) NSString *deviceModel; | ||
| 28 | |||
| 29 | /** | ||
| 30 | Hardware version | ||
| 31 | */ | ||
| 32 | @property (copy, nonatomic, readonly) NSString *hardwareVersion; | ||
| 33 | |||
| 34 | /** | ||
| 35 | Firmware version in Flash | ||
| 36 | */ | ||
| 37 | @property (copy, nonatomic, readonly) NSString *firmwareVersion; | ||
| 38 | |||
| 39 | /** | ||
| 40 | YES:allow;NO:not allow | ||
| 41 | */ | ||
| 42 | @property (assign, nonatomic, readonly) BOOL canUpgrade; | ||
| 43 | |||
| 44 | /** | ||
| 45 | Continue to transfer or not | ||
| 46 | */ | ||
| 47 | @property (assign, nonatomic, readonly) BOOL isContinue; | ||
| 48 | |||
| 49 | /** | ||
| 50 | 1:update no need to disconnect 2:update need to disconnect | ||
| 51 | */ | ||
| 52 | @property (assign, nonatomic, readonly) NSInteger upgradeMethod; | ||
| 53 | |||
| 54 | + (instancetype)infoWithData:(uint8_t [])buf deviceType:(DFUDeviceType)deviceType deviceUUID:(NSString *)uuid; | ||
| 55 | |||
| 56 | @end | ||
