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
}
};