diff options
Diffstat (limited to 'libs/ihealth-sdk/ios/ReactNativeIOSLibrary/Communication_SDK/Headers/HS3.h')
| -rw-r--r-- | libs/ihealth-sdk/ios/ReactNativeIOSLibrary/Communication_SDK/Headers/HS3.h | 63 |
1 files changed, 63 insertions, 0 deletions
diff --git a/libs/ihealth-sdk/ios/ReactNativeIOSLibrary/Communication_SDK/Headers/HS3.h b/libs/ihealth-sdk/ios/ReactNativeIOSLibrary/Communication_SDK/Headers/HS3.h new file mode 100644 index 0000000..2d8fb09 --- /dev/null +++ b/libs/ihealth-sdk/ios/ReactNativeIOSLibrary/Communication_SDK/Headers/HS3.h | |||
| @@ -0,0 +1,63 @@ | |||
| 1 | // | ||
| 2 | // HS3.h | ||
| 3 | // testShareCommunication | ||
| 4 | // | ||
| 5 | // Created by daiqingquan on 13-10-10. | ||
| 6 | // Copyright (c) 2013年 my. All rights reserved. | ||
| 7 | // | ||
| 8 | |||
| 9 | #import <Foundation/Foundation.h> | ||
| 10 | #import "HSMacroFile.h" | ||
| 11 | |||
| 12 | |||
| 13 | /** | ||
| 14 | HS3 | ||
| 15 | */ | ||
| 16 | @interface HS3 : NSObject | ||
| 17 | @property (retain, nonatomic) NSString *currentUUID; | ||
| 18 | @property (retain, nonatomic) NSString *deviceID; | ||
| 19 | @property (retain, nonatomic) NSString *modelNumber; | ||
| 20 | @property (retain, nonatomic) NSDictionary *commInfoDic; | ||
| 21 | @property (retain, nonatomic) NSString *firmwareVersion; | ||
| 22 | |||
| 23 | |||
| 24 | |||
| 25 | -(void)commandInitMeasureWeightID:(WeightID)weightID FinishInit:(FinishHS3Init)finishInit DisposeErrorBlock:(DisposeHS3ErrorBlock)disposeHS3ErrorBlock; | ||
| 26 | |||
| 27 | |||
| 28 | /** | ||
| 29 | Establish memory and measurement connection | ||
| 30 | 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. | ||
| 31 | |||
| 32 | @param startTransmission Start Memory transmission,Success: Yes,Fail: No. | ||
| 33 | @param hs3UploadDataNum MemoryNumber,Range:0~200. | ||
| 34 | @param progress Memory transmission progress,Range:0.0~1.0. | ||
| 35 | @param memorryData Record data including weight(kg)[Range:0.0~150.0], measure time,coordinated key:weight、date. | ||
| 36 | @param finishTransmission Finish memory transmission. | ||
| 37 | @param stableWeight weight (Kg) [value range:0.0~150.0] | ||
| 38 | @param disposeHS3ErrorBlock Error code in measurement process | ||
| 39 | */ | ||
| 40 | -(void)commandInitWithUser:(StartHS3Transmission)startTransmission UploadDataNum:(DisposeHS3UploadDataNum)hs3UploadDataNum DisposeProgress:(DisposeHS3Progress)progress MemorryData:(HS3MemorryData)memorryData FinishTransmission:(FinishHS3Transmission)finishTransmission StableWeight:(StableHS3Weight)stableWeight DisposeErrorBlock:(DisposeHS3ErrorBlock)disposeHS3ErrorBlock; | ||
| 41 | |||
| 42 | /** | ||
| 43 | Turn off Bluetooth Connection | ||
| 44 | This method can be called only for hsInstance.HS3 with FirmwareVersion>=1.0.2 | ||
| 45 | Return parameters: | ||
| 46 | @param disposeResult — ‘YES’ means measurement has been terminated, ‘NO’ means termination failed. | ||
| 47 | @param disposeHS3ErrorBlock - refer to “error” : HS3 error instruction. | ||
| 48 | */ | ||
| 49 | -(void)commandTurnOffBTConnectAutoResult:(DisposeResult)disposeResult DisposeErrorBlock:(DisposeHS3ErrorBlock)disposeHS3ErrorBlock; | ||
| 50 | |||
| 51 | |||
| 52 | |||
| 53 | /** | ||
| 54 | Turn on Bluetooth Connection | ||
| 55 | This method can be called only for hsInstance.HS3 with FirmwareVersion>=1.0.2 | ||
| 56 | Return parameters: | ||
| 57 | @param disposeResult ‘YES’ means measurement has been terminated, ‘NO’ means termination failed. | ||
| 58 | @param disposeHS3ErrorBlock refer to “error” : HS3 error instruction. | ||
| 59 | |||
| 60 | */ | ||
| 61 | -(void)commandTurnOnBTConnectAutoResult:(DisposeResult)disposeResult DisposeErrorBlock:(DisposeHS3ErrorBlock)disposeHS3ErrorBlock; | ||
| 62 | |||
| 63 | @end | ||
