diff options
| author | hc <haocheng.xie@respiree.com> | 2026-04-13 15:17:52 +0800 |
|---|---|---|
| committer | hc <haocheng.xie@respiree.com> | 2026-04-13 15:17:52 +0800 |
| commit | d6d9a09d505d11148599a95a5be3e1351edbe0ac (patch) | |
| tree | a5f5891983d1ff207e99f683a5e151519cef4980 /libs/ihealth-sdk/ios/ReactNativeIOSLibrary/Communication_SDK/Headers/HS2.h | |
| parent | e4fb9966e762852bf17f21c8406501d42fae0b61 (diff) | |
Local iHealth SDK, device detail screen, iOS event fixes
Diffstat (limited to 'libs/ihealth-sdk/ios/ReactNativeIOSLibrary/Communication_SDK/Headers/HS2.h')
| -rw-r--r-- | libs/ihealth-sdk/ios/ReactNativeIOSLibrary/Communication_SDK/Headers/HS2.h | 64 |
1 files changed, 64 insertions, 0 deletions
diff --git a/libs/ihealth-sdk/ios/ReactNativeIOSLibrary/Communication_SDK/Headers/HS2.h b/libs/ihealth-sdk/ios/ReactNativeIOSLibrary/Communication_SDK/Headers/HS2.h new file mode 100644 index 0000000..347b7a9 --- /dev/null +++ b/libs/ihealth-sdk/ios/ReactNativeIOSLibrary/Communication_SDK/Headers/HS2.h | |||
| @@ -0,0 +1,64 @@ | |||
| 1 | // | ||
| 2 | // HS2.h | ||
| 3 | // iHealthSDKStatic | ||
| 4 | // | ||
| 5 | // Created by ihealth on 2017/6/6. | ||
| 6 | // Copyright © 2017年 daiqingquan. All rights reserved. | ||
| 7 | // | ||
| 8 | |||
| 9 | #import <Foundation/Foundation.h> | ||
| 10 | #import "HSMacroFile.h" | ||
| 11 | |||
| 12 | @interface HS2 : NSObject | ||
| 13 | @property (strong, nonatomic) NSString *currentUUID; | ||
| 14 | @property (strong, nonatomic) NSString *deviceID; | ||
| 15 | @property (strong, nonatomic) NSNumber *daiModel; | ||
| 16 | @property (retain, nonatomic) NSString *firmwareVersion; | ||
| 17 | |||
| 18 | /** | ||
| 19 | |||
| 20 | * Establish memory and measurement connection | ||
| 21 | |||
| 22 | * Import parameter: | ||
| 23 | * @param tempUnit -Unit displayed on HS2: HSUnit_Kg、HSUnit_LB、HSUnit_ST。 | ||
| 24 | |||
| 25 | * Return parameters: | ||
| 26 | The measurement via SDK will be operated in the case of 1-4, and will be terminated if any of 5-8 occurs. The interface needs to be re-called after analyzing the return parameters. | ||
| 27 | |||
| 28 | * @param unStableWeight - Current weight, (Kg) [Value Range:0~180] | ||
| 29 | * @param stableWeight - Stable weight, (Kg) [Value Range:0~180] | ||
| 30 | * @param disposeErrorBlock - error code | ||
| 31 | * Error code definition: | ||
| 32 | * refer to “error” : HS2 error instruction. | ||
| 33 | */ | ||
| 34 | |||
| 35 | -(void)commandHS2MeasureWithUint:(HSUnit)tempUnit Weight:(UnStableWeight)unStableWeight StableWeight:(StableWeight)stableWeight DisposeErrorBlock:(DisposeHS2ErrorBlock)disposeErrorBlock; | ||
| 36 | |||
| 37 | /** | ||
| 38 | * Upload memory data | ||
| 39 | |||
| 40 | * Return parameters: | ||
| 41 | * @param startTransmission -Start Memory transmission. | ||
| 42 | * @param progress -Memory transmission progress,[Range:0.0~1.0]. | ||
| 43 | * @param memorryData -Record data including weight (kg), measurement time,coordinated key:weight,date.[Range of weight 0~180(kg)] (If it exceeds 180kg, it will display er1 error, but the SDK interface will also return data. More than 180kg of data is not recommended.) | ||
| 44 | * @param finishTransmission -Finish memory transmission. | ||
| 45 | * @param disposeErrorBlock -Record the error code in uploading process. | ||
| 46 | * Error code definition: refer to ”error” : HS2 error instruction. | ||
| 47 | */ | ||
| 48 | |||
| 49 | -(void)commandHS2TransferMemorryData:(StartHS2Transmission)startTransmission DisposeProgress:(DisposeProgress)progress MemorryData:(MemorryData)memorryData FinishTransmission:(FinishHS2Transmission)finishTransmission DisposeErrorBlock:(DisposeHS2ErrorBlock)disposeErrorBlock; | ||
| 50 | |||
| 51 | /** | ||
| 52 | *Get HS2 Battery | ||
| 53 | |||
| 54 | * @param HS2battery HS2battery [Range:0~100]% | ||
| 55 | * @param disposeErrorBlock error code | ||
| 56 | */ | ||
| 57 | -(void)commandGetHS2Battery:(DisposeHS2BatteryBlock)HS2battery DiaposeErrorBlock:(DisposeHS2ErrorBlock)disposeErrorBlock; | ||
| 58 | /** | ||
| 59 | Disconnect current device | ||
| 60 | */ | ||
| 61 | |||
| 62 | -(void)commandDisconnectDevice; | ||
| 63 | |||
| 64 | @end | ||
