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/HS4.h | |
| parent | e4fb9966e762852bf17f21c8406501d42fae0b61 (diff) | |
Local iHealth SDK, device detail screen, iOS event fixes
Diffstat (limited to 'libs/ihealth-sdk/ios/ReactNativeIOSLibrary/Communication_SDK/Headers/HS4.h')
| -rw-r--r-- | libs/ihealth-sdk/ios/ReactNativeIOSLibrary/Communication_SDK/Headers/HS4.h | 64 |
1 files changed, 64 insertions, 0 deletions
diff --git a/libs/ihealth-sdk/ios/ReactNativeIOSLibrary/Communication_SDK/Headers/HS4.h b/libs/ihealth-sdk/ios/ReactNativeIOSLibrary/Communication_SDK/Headers/HS4.h new file mode 100644 index 0000000..066b3ed --- /dev/null +++ b/libs/ihealth-sdk/ios/ReactNativeIOSLibrary/Communication_SDK/Headers/HS4.h | |||
| @@ -0,0 +1,64 @@ | |||
| 1 | // | ||
| 2 | // HS4.h | ||
| 3 | // testShareCommunication | ||
| 4 | // | ||
| 5 | // Created by daiqingquan on 13-12-2. | ||
| 6 | // Copyright (c) 2013年 my. All rights reserved. | ||
| 7 | // | ||
| 8 | |||
| 9 | #import <Foundation/Foundation.h> | ||
| 10 | #import "HSMacroFile.h" | ||
| 11 | |||
| 12 | |||
| 13 | /** | ||
| 14 | HS4 | ||
| 15 | */ | ||
| 16 | @interface HS4 : NSObject | ||
| 17 | @property (strong, nonatomic) NSString *currentUUID; | ||
| 18 | @property (strong, nonatomic) NSString *deviceID; | ||
| 19 | @property (strong, nonatomic) NSNumber *daiModel; | ||
| 20 | @property (retain, nonatomic) NSString *firmwareVersion; | ||
| 21 | |||
| 22 | |||
| 23 | /** | ||
| 24 | Establish memory and measurement connection | ||
| 25 | Import parameter: | ||
| 26 | @param tempUnit Unit displayed on HS4: HSUnit_Kg、HSUnit_LB、HSUnit_ST。 | ||
| 27 | Return parameters: | ||
| 28 | 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. | ||
| 29 | @param unStableWeight Current weight, (Kg) [Value Range:0~180] | ||
| 30 | @param stableWeight Stable weight, (Kg) [Value Range:0~180] | ||
| 31 | @param disposeErrorBlock error code | ||
| 32 | */ | ||
| 33 | -(void)commandMeasureWithUint:(HSUnit)tempUnit Weight:(UnStableWeight)unStableWeight StableWeight:(StableWeight)stableWeight DisposeErrorBlock:(DisposeHS4ErrorBlock)disposeErrorBlock; | ||
| 34 | |||
| 35 | |||
| 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.0~180.0(kg)] | ||
| 44 | @param finishTransmission Finish memory transmission. | ||
| 45 | @param disposeErrorBlock Record the error code in uploading process. | ||
| 46 | */ | ||
| 47 | -(void)commandTransferMemorryData:(StartHS4Transmission)startTransmission DisposeProgress:(DisposeProgress)progress MemorryData:(MemorryData)memorryData FinishTransmission:(FinishHS4Transmission)finishTransmission DisposeErrorBlock:(DisposeHS4ErrorBlock)disposeErrorBlock; | ||
| 48 | |||
| 49 | /** | ||
| 50 | * End Current Measure Connection | ||
| 51 | * @param result - the result of end current action | ||
| 52 | * @param disposeErrorBlock - error code | ||
| 53 | * Error code definition ---refer to “error” : HS4 error instruction. | ||
| 54 | */ | ||
| 55 | |||
| 56 | -(void)commandEndCurrentConnection:(DisposeResult)result DisposeErrorBlock:(DisposeHS4ErrorBlock)disposeErrorBlock; | ||
| 57 | |||
| 58 | /** | ||
| 59 | Disconnect current device | ||
| 60 | */ | ||
| 61 | |||
| 62 | -(void)commandDisconnectDevice; | ||
| 63 | |||
| 64 | @end | ||
