Set Smart Heart Rate Mode
Menu: setSmartHeartRate
Flutter Example:
/// Set Smart Heart Rate Mode Event
setHeartRateModeSmart(
evtBase: _VBusEvtBase.base_app_set,
evtType: _VBusEvtType.app_set_heart_rate_mode_smart),
/// Set Smart Heart Rate Mode
libManager.send(evt: CmdEvtType.setHeartRateModeSmart, json: jsonEncode(json));
JSON Fields Sent by the App:
Field Name | Field Type | Field Description |
---|---|---|
mode | int | Switch 0:Off 1:On |
notify_flag | int | Notification Type 0: Invalid 1: Allow Notifications 2: Silent Notifications 3: Disable Notifications |
high_heart_mode | int | 1: Enable Smart High Heart Rate Alert 0: Disable |
low_heart_mode | int | 1: Enable Smart Low Heart Rate Alert 0: Disable |
high_heart_value | int | Smart High Heart Rate Alert Threshold |
low_heart_value | int | Smart Low Heart Rate Alert Threshold |
start_hour | int | Start Time of Heart Rate Monitoring (hour) |
start_minute | int | Start Time of Heart Rate Monitoring (minute) |
end_hour | int | End Time of Heart Rate Monitoring (hour) |
end_minute | int | End Time of Heart Rate Monitoring (minute) |
Example:
{
"mode": 1,
"notify_flag": 0,
"high_heart_mode": 0,
"low_heart_mode": 0,
"high_heart_value": 100,
"low_heart_value": 80,
"start_hour": 9,
"start_minute": 0,
"end_hour": 12,
"end_minute": 0
}
JSON Field Received by the App:
Field Name | Field Type | Field Description |
---|---|---|
err_code | int | 0: Success, non-zero: Error code |
Example:
{
"err_code": 0
}