Blood Pressure

Sets blood pressure listener

       _blePlugin.bloodPressureEveStm.listen(
        (BloodPressureBean event) {
           /// Do something with new state,for example:
          setState(() {
            switch (event.type) {
              case BloodPressureType.continueState:
                _continueState = event.continueState!;
                break;
              case BloodPressureType.pressureChange:
                _bean = event.pressureChange!;
                _systolicBloodPressure = _bean!.sbp!;
                _diastolicBloodPressure = _bean!.dbp!;
                break;
              case BloodPressureType.historyList:
                _historyBpList = event.historyBpList!;
                break;
              case BloodPressureType.continueBP:
                info = event.continueBp!;
                _startTime = info!.startTime!;
                _timeInterval = info!.timeInterval!;
                break;
              default:
                break;
            }
          });
        }),

Callback Description(event):

BloodPressureBean´╝Ü

callback valuecallback value typecallback value description
typeintGet the corresponding return value according to type, where type is the value corresponding to BloodPressureType
continueStateboolContinue to display blood pressure status
pressureChangeBloodPressureChangeBeanObtain the current diastolic and systolic blood pressure
historyBPListList< HistoryBloodPressureBean >historical blood pressure
continueBPBloodPressureInfo24 hour blood pressure

BloodPressureType:

typevaluevalue description
continueState1Query continue blood pressure state
pressureChange2Stop measuring blood pressure and return the high and low pressure values
historyList3Query history once blood pressure
continueBP4Query last 24 hour blood pressure

BloodPressureChangeBean´╝Ü

callback valuecallback value typecallback value description
sbpintSystolic blood pressure
dbpintDiastolic blood pressure

HistoryBloodPressureBean:

callback valuecallback value typecallback value description
dateStringdate of measurement
sbpintsystolic blood pressure
dbpintdiastolic blood pressure

BloodPressureInfo:

callback valuecallback value typecallback value description
startTimeintStart measuring time
timeIntervalintIntervals

Measuring blood pressure

_blePlugin.startMeasureBloodPressure;

Stop measuring blood pressure

Stop measuring blood pressure, too short a measurement time will result in no measurement results.

The measurement results are monitored through the bloodPressureEveStm data stream, and the returned high and low pressure values are stored in BloodPressureBean.bloodPressureChange and BloodPressureBean.bloodPressureChange1, respectively,type is pressureChange.

_blePlugin.stopMeasureBloodPressure;

Enable continue blood pressure

_blePlugin.enableContinueBloodPressure;

Disable continue blood pressure

_blePlugin.disableContinueBloodPressure;

Gets continue blood pressure state

The measurement results are monitored through the bloodPressureEveStmdata stream, and the continue blood pressure state is stored in BloodPressureBean.continueState,type is continueState.

_blePlugin.queryContinueBloodPressureState;

Gets last 24 hour blood pressure

The measurement results are monitored through the bloodPressureEveStmdata stream, and the last 24 hour blood pressure is stored in BloodPressureBean.continueBP,type is continueBP.

_blePlugin.queryLast24HourBloodPressure;

Gets history once blood pressure

The measurement results are monitored through the bloodPressureEveStmdata stream, and the history once blood pressure is stored in BloodPressureBean.historyBPList,type is historyList.

_blePlugin.queryHistoryBloodPressure;
Last Updated: