Set Stress Calibration
Menu: setSetStressCalibration
Flutter Example:
/// Set Stress Calibration Event Code
setStressCalibration(
evtBase: _VBusEvtBase.base_app_set,
evtType: _VBusEvtType.app_set_stress_cal),
/// Set Stress Calibration
libManager.send(evt: CmdEvtType.setStressCalibration, json: jsonEncode(json));
JSON Fields Sent by the App:
Field Name | Field Type | Field Description |
---|---|---|
stress_score | int | Stress score, ranging from 1 to 10 |
status | int | 0: Start calibration setting 1: Cancel calibration setting |
Example:
{
"stress_score": 6,
"status": 0
}
JSON Fields Received by the App:
Field Name | Field Type | Field Description |
---|---|---|
ret_code | int | 0: Success 1: Failed - Calibration in progress 2: Failed - Charging 3: Failed - Not wearing 4: Failed - In a sports scene |
Example:
{
"ret_code": 3
}