diff options
Diffstat (limited to 'libs/ihealth-sdk/ios/ReactNativeIOSLibrary/Communication_SDK/Headers/BG1S.h')
| -rw-r--r-- | libs/ihealth-sdk/ios/ReactNativeIOSLibrary/Communication_SDK/Headers/BG1S.h | 64 |
1 files changed, 64 insertions, 0 deletions
diff --git a/libs/ihealth-sdk/ios/ReactNativeIOSLibrary/Communication_SDK/Headers/BG1S.h b/libs/ihealth-sdk/ios/ReactNativeIOSLibrary/Communication_SDK/Headers/BG1S.h new file mode 100644 index 0000000..c6367c2 --- /dev/null +++ b/libs/ihealth-sdk/ios/ReactNativeIOSLibrary/Communication_SDK/Headers/BG1S.h | |||
| @@ -0,0 +1,64 @@ | |||
| 1 | // | ||
| 2 | // BG1S.h | ||
| 3 | // iHealthSDKStatic | ||
| 4 | // | ||
| 5 | // Created by jing on 2019/5/8. | ||
| 6 | // Copyright © 2019 ihealthSDK. All rights reserved. | ||
| 7 | // | ||
| 8 | |||
| 9 | #import <Foundation/Foundation.h> | ||
| 10 | #import "BGMacroFile.h" | ||
| 11 | NS_ASSUME_NONNULL_BEGIN | ||
| 12 | |||
| 13 | @interface BG1S : NSObject | ||
| 14 | @property (strong, nonatomic) NSString *serialNumber; | ||
| 15 | @property (strong, nonatomic) NSString *currentUUID; | ||
| 16 | |||
| 17 | /** | ||
| 18 | * Get device battary | ||
| 19 | * @param function A block to return the function and states that the device supports. | ||
| 20 | * @param disposeBGErrorBlock A block to refer ‘error’ in ‘Establish measurement connection’ in BG1S. | ||
| 21 | */ | ||
| 22 | -(void)commandFunction:(BlockBG1SDeviceFunction)function DisposeBGErrorBlock:(BlockBG1SError)disposeBGErrorBlock; | ||
| 23 | |||
| 24 | /** | ||
| 25 | * Button-pressing booting mode | ||
| 26 | * @param testMode Set the measurement mode,must be the same as the testType in send code method, BGMeasureMode_Blood means blood measurement mode, BGMeasureMode_NoBlood means control solution measurement mode. | ||
| 27 | * @param disposeBGStripInBlock This block returns yes means strip slides in. | ||
| 28 | * @param disposeBGBloodBlock This block returns yes means the blood drop has beed sensed from the strip. | ||
| 29 | * @param disposeBGResultBlock This block returns the measurement by the unit of mg/dL, range from 20-600. | ||
| 30 | * @param disposeBGErrorBlock This block returns error codes,please refer to error codes list in BGMacroFile. | ||
| 31 | */ | ||
| 32 | -(void)commandCreateBG1STestModel:(BGMeasureMode)testMode | ||
| 33 | DisposeBGStripInBlock:(DisposeBG1SStripInBlock)disposeBGStripInBlock | ||
| 34 | DisposeBGBloodBlock:(DisposeBGBloodBlock)disposeBGBloodBlock | ||
| 35 | DisposeBGResultBlock:(DisposeBGResultBlock)disposeBGResultBlock | ||
| 36 | DisposeBGErrorBlock:(BlockBG1SError)disposeBGErrorBlock; | ||
| 37 | |||
| 38 | /** | ||
| 39 | * Read the information of the strip from the BG meter | ||
| 40 | * @param disposeBGCodeDic This block returns the information of the strip, Strips means the number of strips which has been used, Date means expired date. | ||
| 41 | * @param disposeBGErrorBlock This block returns error codes,please refer to error codes list in BGMacroFile. | ||
| 42 | */ | ||
| 43 | -(void)commandReadBGCodeDic:(DisposeBGCodeDic)disposeBGCodeDic | ||
| 44 | DisposeBGErrorBlock:(BlockBG1SError)disposeBGErrorBlock; | ||
| 45 | |||
| 46 | /** | ||
| 47 | * Send code | ||
| 48 | |||
| 49 | * @param encodeString The code String gets by scanning the QR code. Only used when codetype is GOD | ||
| 50 | |||
| 51 | * @param disposeBGSendCodeBlock YES means success, NO means fail. | ||
| 52 | |||
| 53 | * @param disposeBGErrorBlock This block returns error codes,please refer to error codes list in BGMacroFile. | ||
| 54 | */ | ||
| 55 | -(void)commandSendBGCodeWithCodeString:(NSString*)encodeString DisposeBGSendCodeBlock:(DisposeBGSendCodeBlock)disposeBGSendCodeBlock DisposeBGErrorBlock:(BlockBG1SError)disposeBGErrorBlock; | ||
| 56 | /** | ||
| 57 | * Disconnect current device | ||
| 58 | */ | ||
| 59 | -(void)commandDisconnectDevice; | ||
| 60 | |||
| 61 | |||
| 62 | @end | ||
| 63 | |||
| 64 | NS_ASSUME_NONNULL_END | ||
