Set up blood pressure calibration

Function table

 __IDO_FUNCTABLE__.funcTable18Model.bloodPressure
                || __IDO_FUNCTABLE__.funcTable34Model.supportV3Bp

Blood Pressure Calibration Model Description

  • IDOSetBloodPressureInfoBluetoothModel
Parameter Description Remark
diastolic Diastolic blood pressure int
shrinkage Systolic blood pressure int
statusCode Return to calibration state 0x01:Successfully entered calibration mode, calibrating 0x02:in sport mode,
0x03:Dice is busy,0x04:Invalid state,0x06:Calibration failed,
0x00:Calibration succeeded
flag Blood pressure calibration control 0x01:Blood pressure calibration starts,0x02:Blood pressure calibration query

Command code

Objc:

IDOSetBloodPressureInfoBluetoothModel * model = [IDOSetBloodPressureInfoBluetoothModel currentModel];
[IDOFoundationCommand setBpCalCommand:model
                             callback:^(int errorCode) {
    if (errorCode == 0) {
       //Set successfully
    }else if (errorCode == 6) {
      //Device not supported
    }else {
      //Setup failed
    }
}];

Swift:

let model = IDOSetBloodPressureInfoBluetoothModel.current();
IDOFoundationCommand.setBpCal(model) { (errorCode) in
     if errorCode == 0 {
        //Set successfully
     }else if errorCode == 6{
        //Device does not support this method
     }else {
       //Wrong setting
     }
};
Copyright © 2015-2020 IDO. All rights reserved. all right reserved,powered by GitbookModify Date: 2023-12-18 10:04:13

results matching ""

    No results matching ""