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/BG1.h | |
| parent | e4fb9966e762852bf17f21c8406501d42fae0b61 (diff) | |
Local iHealth SDK, device detail screen, iOS event fixes
Diffstat (limited to 'libs/ihealth-sdk/ios/ReactNativeIOSLibrary/Communication_SDK/Headers/BG1.h')
| -rw-r--r-- | libs/ihealth-sdk/ios/ReactNativeIOSLibrary/Communication_SDK/Headers/BG1.h | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/libs/ihealth-sdk/ios/ReactNativeIOSLibrary/Communication_SDK/Headers/BG1.h b/libs/ihealth-sdk/ios/ReactNativeIOSLibrary/Communication_SDK/Headers/BG1.h new file mode 100644 index 0000000..5cd9537 --- /dev/null +++ b/libs/ihealth-sdk/ios/ReactNativeIOSLibrary/Communication_SDK/Headers/BG1.h | |||
| @@ -0,0 +1,53 @@ | |||
| 1 | // | ||
| 2 | // BG1.h | ||
| 3 | // iHealthSDKStatic | ||
| 4 | // | ||
| 5 | // Created by soso on 2017/8/25. | ||
| 6 | // Copyright © 2017年 ihealth. All rights reserved. | ||
| 7 | // | ||
| 8 | |||
| 9 | #import <Foundation/Foundation.h> | ||
| 10 | #import "BGMacroFile.h" | ||
| 11 | |||
| 12 | /** | ||
| 13 | BG1 | ||
| 14 | */ | ||
| 15 | @interface BG1 : NSObject | ||
| 16 | @property (strong, nonatomic) NSString *mac; | ||
| 17 | @property (strong, nonatomic) NSString *firmwareVersion; | ||
| 18 | |||
| 19 | |||
| 20 | /** | ||
| 21 | * Start connect BG1 and get the connection status. | ||
| 22 | * @param BG1Model the BG1 type. | ||
| 23 | * @param discover This block returns means blood glucose meter plugged in. | ||
| 24 | * @param IDPSInfo This block returns the IDPS of the meter, this will be operated for the first time when the app talks to the meter. | ||
| 25 | * @param connect This block returns the connection status, the connection of the BG meter is regular , the measurement could be processed. | ||
| 26 | * @param error block returns error codes,please refer to error codes list in BGMacroFile. | ||
| 27 | * @Notice Notice: Using this method should be placed kNotificationNameNeedAudioPermission callback | ||
| 28 | */ | ||
| 29 | - (void)commandBG1DeviceModel:(NSNumber *)BG1Model withDiscoverBlock:(DisposeBG1DiscoverBlock)discover withDiscoverBlock:(DisposeBG1IDPSBlock)IDPSInfo withConnectBlock:(DisposeBG1ConnectBlock)connect withErrorBlock:(DisposeBG1ErrorBlock)error; | ||
| 30 | |||
| 31 | |||
| 32 | /** | ||
| 33 | * Establish connection and start BG measurement.(New) | ||
| 34 | * @param measureMode Set the measure test type,BGMeasureMode_Blood is Blood Test,BGMeasureMode_NoBlood is CTL Test. | ||
| 35 | * @param codeMode Set the code type,BGCodeMode_GOD is GOD,BGCodeMode_GDH is GDH. | ||
| 36 | * @param codeString The code String gets by scanning the QR code. | ||
| 37 | * @param sendCodeResult If the QR code is accepted, yes means accepted, no means deny. | ||
| 38 | * @param stripIn The strips slide into the BG meter. | ||
| 39 | * @param blood The blood drop has beed sensed from the strip. | ||
| 40 | * @param measureResult Returns the measurement by the unit of mg/dL, range from 20-600. | ||
| 41 | * @param stripOut The strip has been pulled out. | ||
| 42 | * @param error This block returns error codes,please refer to error codes list in BGMacroFile. | ||
| 43 | */ | ||
| 44 | - (void)commandBG1MeasureMode:(BGMeasureMode)measureMode withCodeMode:(BGCodeMode)codeMode withCodeString:(NSString *)codeString withSendCodeResultBlock:(DisposeBG1SendCodeResultBlock)sendCodeResult withStripInBlock:(DisposeBGStripInBlock)stripIn withBloodBlock:(DisposeBGBloodBlock)blood withResultBlock:(DisposeBGResultBlock)measureResult withStripOutBlock:(DisposeBGStripOutBlock)stripOut withErrorBlock:(DisposeBG1ErrorBlock)error; | ||
| 45 | |||
| 46 | /** | ||
| 47 | Analyze code include bottleID,DueDate and the number of strips. Only Available for GOD Code | ||
| 48 | |||
| 49 | @param encodeString The code String gets by scanning the QR code. | ||
| 50 | @return return a dictionary contains keys such as @"BottleID",@"StripNum",@"DueDate"; return nil if input parameter is GDH code or code is invalid. | ||
| 51 | */ | ||
| 52 | -(NSDictionary *)codeStripStrAnalysis:(NSString *)encodeString; | ||
| 53 | @end | ||
