/**
* Created by gaoyuanlong on 16/11/16.
*/
'use strict';
var { NativeModules } = require('react-native');
var RCTModule = NativeModules.BG5SProfileModule
/**
* @module BG5SProfileModule
*/
module.exports = {
/**
* The action value of event indicating the error of BG device.
*/
ACTION_ERROR_BG: RCTModule.ACTION_ERROR_BG,
/**
* The action value of event indicating keep link success.
* The key and value will be as below:
*
| Key | Value |
| action | {@link module:BGProfileModule.ACTION_KEEP_LINK BGProfileModule.ACTION_KEEP_LINK("action_keep_link")} |
| Key | Value |
| action | {@link module:BGProfileModule.ACTION_SET_TIME BGProfileModule.ACTION_SET_TIME("action_set_time")} |
| Key | Value |
| action | {@link module:BGProfileModule.ACTION_SET_UNIT BGProfileModule.ACTION_SET_UNIT("action_set_unit")} |
| Key | Value |
| action | {@link module:BGProfileModule.ACTION_GET_BATTERY BGProfileModule.ACTION_GET_BATTERY("action_battery_bg")} |
| {@link module:BGProfileModule.GET_BATTERY BGProfileModule.GET_BATTERY("battery")} | The battery value. |
| Key | Value |
| action | {@link module:BGProfileModule.ACTION_START_MEASURE BGProfileModule.ACTION_START_MEASURE("action_start_measure")} |
| Key | Value |
| action | {@link module:BGProfileModule.ACTION_GET_OFFLINEDATA_COUNT BGProfileModule.ACTION_GET_OFFLINEDATA_COUNT("action_historicalnum_bg")} |
| {@link module:BGProfileModule.GET_OFFLINEDATA_COUNT BGProfileModule.GET_OFFLINEDATA_COUNT("count")} | The offline data count value. |
| Key | Value |
| action | {@link module:BGProfileModule.ACTION_GET_OFFLINEDATA BGProfileModule.ACTION_GET_OFFLINEDATA("action_historicaldata_bg")} |
| {@link module:BGProfileModule.GET_OFFLINEDATA BGProfileModule.GET_OFFLINEDATA("his_data_bg")} | Get offline data command result |
| Key | Value |
| action | {@link module:BGProfileModule.ACTION_DELETE_OFFLINEDATA BGProfileModule.ACTION_DELETE_OFFLINEDATA("action_delete_historical_data")} |
| Key | Value |
| action | {@link module:BGProfileModule.ACTION_SET_BOTTLEMESSAGE BGProfileModule.ACTION_SET_BOTTLEMESSAGE("action_set_bottle_message_success")} |
| {@link module:BGProfileModule.SET_BOTTLEMESSAGE BGProfileModule.SET_BOTTLEMESSAGE("set_bottle_message")} | Set bottle message command result |
| {@link module:BGProfileModule.START_MODE BGProfileModule.START_MODE("start_mode")} | The start mode of Bg5 device. |
| Key | Value |
| action | {@link module:BGProfileModule.ACTION_GET_BOTTLEMESSAGE BGProfileModule.ACTION_GET_BOTTLEMESSAGE("action_get_codeinfo")} |
| {@link module:BGProfileModule.GET_EXPIRECTIME BGProfileModule.GET_EXPIRECTIME("expiretime")} | The strip expire time of Bg5 device. |
| {@link module:BGProfileModule.GET_USENUM BGProfileModule.GET_USENUM("usenum")} | The strip used num, from offline data by Bg5 device. |
| Key | Value |
| action | {@link module:BGProfileModule.ACTION_SET_BOTTLEID BGProfileModule.ACTION_SET_BOTTLEID("action_setbottleid_success")} |
| Key | Value |
| action | {@link module:BGProfileModule.ACTION_GET_BOTTLEID BGProfileModule.ACTION_GET_BOTTLEID("action_get_bottleid")} |
| {@link module:BGProfileModule.GET_BOTTLEID BGProfileModule.GET_BOTTLEID("bottleid")} | The bottleId of Bg5 device. |
| Key | Value |
| action | {@link module:BGProfileModule.ACTION_STRIP_IN BGProfileModule.ACTION_STRIP_IN("action_measure_strip_in")} |
| Key | Value |
| action | {@link module:BGProfileModule.ACTION_STRIP_OUT BGProfileModule.ACTION_STRIP_OUT("action_measure_strip_out")} |
| Key | Value |
| action | {@link module:BGProfileModule.ACTION_GET_BLOOD BGProfileModule.ACTION_GET_BLOOD("action_measure_get_blood")} |
| Key | Value |
| action | {@link module:BGProfileModule.ACTION_ONLINE_RESULT_BG BGProfileModule.ACTION_ONLINE_RESULT_BG("action_value_bg")} |
| {@link module:BGProfileModule.ONLINE_RESULT_BG BGProfileModule.ONLINE_RESULT_BG("result")} | The bg value measured by device |
| {@link module:BGProfileModule.DATA_ID BGProfileModule.DATA_ID("dataID")} | The dataID measured by device |
0:Battery is low.
*1:Glucose test result is out of the measurement range.
*2:Unknown interference detected, please repeat the test.
*3:Strip is used or unknown moisture detected, discard the test strip and repeat the test with a new strip..
*4:Reading transmission error. Repeat the test with a new test strip. If the problem persists, contact iHealth customer service for assistance.
*5:The environmental temperature is beyond normal range, place the meter at room temperature for at least 30 minutes, then repeat the test.
*6:The environmental temperature is beyond normal range, place the meter at room temperature for at least 30 minutes, then repeat the test.
*7:Test strip coding error.
*8:Communication error, press"START" or rescan the code to repeat the test.
*9:Strip removed in the middle of reading, repeat the test with a new strip.
*10:Insert a new test strip and repeat the test.
*11:Cannot write to SN or KEY.
*12:Please set time.
*13:0 test strips remaining.
*14:Test strip expired.
*15:Unplug the charging cable before testing.
*18:Unplug the charging cable before read the history data> *
19:Charging line is inserted> *
20:Charging line pull out> *
21:The bluetooth module failure> *
100:The device is disconnected (Android doesn't support this code)> *
112:Device don't support to query energy.
*400:Parameters out of range.
*402:The order of call is wrong.
*403:Parameter type is not matched in function call.
*404:Function(disConnect) is not supported in iOS platform.(Only available in iOS platform)
*405:QRCode format error
*/ ERROR_NUM_BG: RCTModule.ERROR_NUM_BG, /** * The error discription. */ ERROR_DESCRIPTION_BG: RCTModule.ERROR_DESCRIPTION_BG, /** * The battery value. */ GET_BATTERY: RCTModule.GET_BATTERY, /** * The offline data count value. */ GET_OFFLINEDATA_COUNT: RCTModule.GET_OFFLINEDATA_COUNT, /** * Get offline data value. */ GET_OFFLINEDATA: RCTModule.GET_OFFLINEDATA, /** * Set bottle message result value. */ SET_BOTTLEMESSAGE: RCTModule.SET_BOTTLEMESSAGE, /** * the start mode of Bg5 device. *| Key | Value |
| action | {@link module:BGProfileModule.ACTION_CODE_ANALYSIS BGProfileModule.ACTION_CODE_ANALYSIS("action_code_analysis")} |
| {@link module:BGProfileModule.STRIP_NUM_BG BGProfileModule.STRIP_NUM_BG("strip_num")} | The strip number of the QRCode |
| {@link module:BGProfileModule.STRIP_EXPIRETIME_BG BGProfileModule.STRIP_EXPIRETIME_BG("expire_time")} | The expire time of the QRCode |
| {@link module:BGProfileModule.BOTTLEID_BG BGProfileModule.BOTTLEID_BG("bottle_id")} | The bottle id of the QRCode |