From d6d9a09d505d11148599a95a5be3e1351edbe0ac Mon Sep 17 00:00:00 2001 From: hc Date: Mon, 13 Apr 2026 15:17:52 +0800 Subject: Local iHealth SDK, device detail screen, iOS event fixes --- libs/ihealth-sdk/module/BG1ProfileModule.js | 90 +++++++++++++++++++++++++++++ 1 file changed, 90 insertions(+) create mode 100755 libs/ihealth-sdk/module/BG1ProfileModule.js (limited to 'libs/ihealth-sdk/module/BG1ProfileModule.js') diff --git a/libs/ihealth-sdk/module/BG1ProfileModule.js b/libs/ihealth-sdk/module/BG1ProfileModule.js new file mode 100755 index 0000000..02f39dc --- /dev/null +++ b/libs/ihealth-sdk/module/BG1ProfileModule.js @@ -0,0 +1,90 @@ +'use strict'; + + +var { NativeModules } = require('react-native'); + +var RCTModule = NativeModules.BG1ProfileModule + +/** + * @module BG1ProfileModule + */ +module.exports = { + + /** + * Callback indicating the send code result of bg1 device. + */ + ACTION_BG1_SENDCODE_RESULT:RCTModule.ACTION_BG1_SENDCODE_RESULT, + + /** + * The send code result of bg1 device. + * value : 0 success; other error + */ + BG1_SENDCODE_RESULT:RCTModule.BG1_SENDCODE_RESULT, + + /** + * Callback indicating the error of Bg1 device. + */ + ACTION_BG1_MEASURE_ERROR:RCTModule.ACTION_BG1_MEASURE_ERROR, + + /** + * Flag Error number of Bg1 device. + */ + BG1_MEASURE_ERROR:RCTModule.BG1_MEASURE_ERROR, + + /** + * Callback indicating the strip in action. + */ + ACTION_BG1_MEASURE_STRIP_IN:RCTModule.ACTION_BG1_MEASURE_STRIP_IN, + + /** + * Callback indicating the get blood action. + */ + ACTION_BG1_MEASURE_GET_BLOOD:RCTModule.ACTION_BG1_MEASURE_GET_BLOOD, + + /** + * Callback indicating the measure result. + */ + ACTION_BG1_MEASURE_RESULT:RCTModule.ACTION_BG1_MEASURE_RESULT, + + /** + * The measure result + * Range : 20-600 mg/dL + */ + BG1_MEASURE_RESULT:RCTModule.BG1_MEASURE_RESULT, + + /** + * Callback indicating the strip out action. + */ + ACTION_BG1_MEASURE_STRIP_OUT:RCTModule.ACTION_BG1_MEASURE_STRIP_OUT, + + /** + * Callback indicating the Bg1 device get in standby mode. + */ + ACTION_BG1_MEASURE_STANDBY:RCTModule.ACTION_BG1_MEASURE_STANDBY, + + /** + * the data id + */ + DATA_ID:RCTModule.DATA_ID, + + /** + * Callback indicating the code analysis result. + */ + ACTION_CODE_ANALYSIS:RCTModule.ACTION_CODE_ANALYSIS, + + /** + * the strip number + */ + STRIP_NUM_BG:RCTModule.STRIP_NUM_BG, + + /** + * the expire time + */ + STRIP_EXPIRETIME_BG:RCTModule.STRIP_EXPIRETIME_BG, + + /** + * the bottle id + */ + BOTTLEID_BG:RCTModule.BOTTLEID_BG + +} -- cgit